[asterisk-commits] rizzo: branch rizzo/astobj2 r48538 - /team/rizzo/astobj2/channels/chan_sip.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Sun Dec 17 01:20:36 MST 2006


Author: rizzo
Date: Sun Dec 17 02:20:35 2006
New Revision: 48538

URL: http://svn.digium.com/view/asterisk?view=rev&rev=48538
Log:
remove a duplicate increment of headers in add_header()

trunk candidate.


Modified:
    team/rizzo/astobj2/channels/chan_sip.c

Modified: team/rizzo/astobj2/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/team/rizzo/astobj2/channels/chan_sip.c?view=diff&rev=48538&r1=48537&r2=48538
==============================================================================
--- team/rizzo/astobj2/channels/chan_sip.c (original)
+++ team/rizzo/astobj2/channels/chan_sip.c Sun Dec 17 02:20:35 2006
@@ -5715,10 +5715,6 @@
 	snprintf(dst, maxlen, "%s: %s\r\n", var, value);
 	req->len += strlen(dst);
 	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