[svn-commits] oej: trunk r59038 - in /trunk: ./ channels/chan_sip.c
svn-commits at lists.digium.com
svn-commits at lists.digium.com
Sun Mar 18 13:39:38 MST 2007
Author: oej
Date: Sun Mar 18 15:39:37 2007
New Revision: 59038
URL: http://svn.digium.com/view/asterisk?view=rev&rev=59038
Log:
Merged revisions 59037 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r59037 | oej | 2007-03-18 21:37:06 +0100 (Sun, 18 Mar 2007) | 3 lines
Issue #9313, Asterisk crash on SIP return code 0 (reported by qwerty1979)
........
Modified:
trunk/ (props changed)
trunk/channels/chan_sip.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.
Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?view=diff&rev=59038&r1=59037&r2=59038
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Sun Mar 18 15:39:37 2007
@@ -15295,6 +15295,10 @@
if (sscanf(e, "%d %n", &respid, &len) != 1) {
ast_log(LOG_WARNING, "Invalid response: '%s'\n", e);
} else {
+ if (respid <= 0) {
+ ast_log(LOG_WARNING, "Invalid SIP response code: '%d'\n", respid);
+ return 0;
+ }
/* More SIP ridiculousness, we have to ignore bogus contacts in 100 etc responses */
if ((respid == 200) || ((respid >= 300) && (respid <= 399)))
extract_uri(p, req);
More information about the svn-commits
mailing list