[svn-commits] mmichelson: trunk r200146 - /trunk/channels/chan_sip.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Thu Jun 11 16:17:17 CDT 2009
Author: mmichelson
Date: Thu Jun 11 16:17:14 2009
New Revision: 200146
URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=200146
Log:
Fix a crash due to a potentially NULL p->options.
Thanks to mnicholson for pointing it out.
Modified:
trunk/channels/chan_sip.c
Modified: trunk/channels/chan_sip.c
URL: http://svn.asterisk.org/svn-view/asterisk/trunk/channels/chan_sip.c?view=diff&rev=200146&r1=200145&r2=200146
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Thu Jun 11 16:17:14 2009
@@ -8971,7 +8971,7 @@
* 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) {
More information about the svn-commits
mailing list