[Asterisk-cvs] asterisk/channels chan_sip.c,1.833,1.834
kpfleming
kpfleming
Thu Sep 1 18:10:03 CDT 2005
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv6498/channels
Modified Files:
chan_sip.c
Log Message:
don't try to reference through pvt if it is NULL (issue #5089)
Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.833
retrieving revision 1.834
diff -u -d -r1.833 -r1.834
--- chan_sip.c 1 Sep 2005 21:09:34 -0000 1.833
+++ chan_sip.c 1 Sep 2005 22:11:02 -0000 1.834
@@ -943,10 +943,11 @@
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;
}
More information about the svn-commits
mailing list