diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2005-09-01 22:11:02 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2005-09-01 22:11:02 +0000 |
commit | 3a31b6ff2dd4bcc42754d748c789bb2aa93a7f8b (patch) | |
tree | 79c74f38532425328310e80642d1de2ca0f50d88 | |
parent | 16773c3d7ccccea1ebdfaea4b8d21a64c1edde4a (diff) |
don't try to reference through pvt if it is NULL (issue #5089)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6495 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rwxr-xr-x | channels/chan_sip.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 413118d2a..e60bd4bf2 100755 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -943,10 +943,11 @@ unsigned int parse_sip_options(struct sip_pvt *pvt, char *supported) ast_log(LOG_DEBUG, "Found no match for SIP option: %s (Please file bug report!)\n", next); next = sep; } - if (pvt) + if (pvt) { pvt->sipoptions = profile; - - ast_log(LOG_DEBUG, "* SIP extension value: %d for call %s\n", profile, pvt->callid); + if (option_debug) + ast_log(LOG_DEBUG, "* SIP extension value: %d for call %s\n", profile, pvt->callid); + } return profile; } |