[asterisk-commits] russell: branch 1.4 r95191 - /branches/1.4/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Dec 28 12:24:59 CST 2007


Author: russell
Date: Fri Dec 28 12:24:59 2007
New Revision: 95191

URL: http://svn.digium.com/view/asterisk?view=rev&rev=95191
Log:
Remove duplicate increment of the header count in the add_header() function.

(closes issue #11648)
Reported by: makoto
Patch provided by sergee, committed patch by me, inspired by comments from putnopvut

Modified:
    branches/1.4/channels/chan_sip.c

Modified: branches/1.4/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_sip.c?view=diff&rev=95191&r1=95190&r2=95191
==============================================================================
--- branches/1.4/channels/chan_sip.c (original)
+++ branches/1.4/channels/chan_sip.c Fri Dec 28 12:24:59 2007
@@ -5538,10 +5538,6 @@
 	snprintf(req->header[req->headers], maxlen, "%s: %s\r\n", var, value);
 	req->len += strlen(req->header[req->headers]);
 	req->headers++;
-	if (req->headers < SIP_MAX_HEADERS)
-		req->headers++;
-	else
-		ast_log(LOG_WARNING, "Out of SIP header space... Will generate broken SIP message\n");
 
 	return 0;	
 }




More information about the asterisk-commits mailing list