diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-06-11 21:17:14 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-06-11 21:17:14 +0000 |
commit | ae5aa230f5ea43eec577ce067257dfd23ea1aaba (patch) | |
tree | 6d649d874660c93c6da862320a3b9535cd52b8bb /channels | |
parent | c037f3315c8250463bde4b3e97e3cd84984fb3c4 (diff) |
Fix a crash due to a potentially NULL p->options.
Thanks to mnicholson for pointing it out.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@200146 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 0117197b6..23eaa695f 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -8971,7 +8971,7 @@ static int reqprep(struct sip_request *req, struct sip_pvt *p, int sipmethod, in * Similarly, if we need to re-send an INVITE with auth credentials, then we * need to use the same branch as we did the first time we sent the INVITE. */ - if (sipmethod == SIP_CANCEL || (sipmethod == SIP_INVITE && !ast_strlen_zero(p->options->auth))) { + if (sipmethod == SIP_CANCEL || (sipmethod == SIP_INVITE && p->options && !ast_strlen_zero(p->options->auth))) { p->branch = p->invite_branch; build_via(p); } else if (newbranch) { |