diff options
author | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-06-01 16:58:06 +0000 |
---|---|---|
committer | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-06-01 16:58:06 +0000 |
commit | d56b15dc62d1596c0b2033a353d4004b8b3bdcc2 (patch) | |
tree | 8ffc819631b1d9eaa5433080d18a73a6b83b6556 /channels | |
parent | f796193575703618e2b05e84545e3354543a8276 (diff) |
Issue #7103 take two. Thanks Mikael!
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@31414 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 93bd72df5..9f915fa99 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -1366,7 +1366,7 @@ static unsigned int parse_sip_options(struct sip_pvt *pvt, const char *supported unsigned int profile = 0; int i, found; - if (!pvt || ast_strlen_zero(supported) ) + if (ast_strlen_zero(supported) ) return 0; if (option_debug > 2 && sipdebug) @@ -1392,7 +1392,8 @@ static unsigned int parse_sip_options(struct sip_pvt *pvt, const char *supported ast_log(LOG_DEBUG, "Found no match for SIP option: %s (Please file bug report!)\n", next); } - pvt->sipoptions = profile; + if (pvt) + pvt->sipoptions = profile; return profile; } |