mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-06 01:45:11 +00:00
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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user