summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorOlle Johansson <oej@edvina.net>2006-06-01 16:58:06 +0000
committerOlle Johansson <oej@edvina.net>2006-06-01 16:58:06 +0000
commit4d17451c551e168ca1ee2456d9d440c5f665f47a (patch)
tree8ffc819631b1d9eaa5433080d18a73a6b83b6556 /channels
parent4c76028de96d32281f5fb94538f0a93bb3a57b50 (diff)
Issue #7103 take two. Thanks Mikael!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@31414 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c5
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;
}