[asterisk-commits] mmichelson: branch 1.6.0 r114908 - /branches/1.6.0/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Apr 30 15:17:21 CDT 2008


Author: mmichelson
Date: Wed Apr 30 15:17:20 2008
New Revision: 114908

URL: http://svn.digium.com/view/asterisk?view=rev&rev=114908
Log:
Make 1.6.0 compile


Modified:
    branches/1.6.0/channels/chan_sip.c

Modified: branches/1.6.0/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/branches/1.6.0/channels/chan_sip.c?view=diff&rev=114908&r1=114907&r2=114908
==============================================================================
--- branches/1.6.0/channels/chan_sip.c (original)
+++ branches/1.6.0/channels/chan_sip.c Wed Apr 30 15:17:20 2008
@@ -18074,8 +18074,8 @@
 			ntohs(sin->sin_port), req->data);
 	}
 
-	if(parse_request(req) == -1) { /* Bad packet, can't parse */
-		ast_str_reset(req->data); /* nulling this out is NOT a good idea here. */
+	if (parse_request(req) == -1) { /* Bad packet, can't parse */
+		req->data[0] = '\0'; /* nulling this out is NOT a good idea here. */
 		return 1;
 	}
 




More information about the asterisk-commits mailing list