[asterisk-commits] kmoore: branch 1.6.2 r324643 - /branches/1.6.2/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jun 23 13:21:16 CDT 2011


Author: kmoore
Date: Thu Jun 23 13:21:12 2011
New Revision: 324643

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=324643
Log:
Addresses AST-2011-008, memory corruption and remote crash in SIP driver.

AST-2011-008

Modified:
    branches/1.6.2/channels/chan_sip.c

Modified: branches/1.6.2/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.2/channels/chan_sip.c?view=diff&rev=324643&r1=324642&r2=324643
==============================================================================
--- branches/1.6.2/channels/chan_sip.c (original)
+++ branches/1.6.2/channels/chan_sip.c Thu Jun 23 13:21:12 2011
@@ -22706,7 +22706,8 @@
 		return -1;
 	}
 
-	req.len = res;
+	/* req.data will have the correct length in case of nulls */
+	req.len = ast_str_strlen(req.data);
 	req.socket.fd = sipsock;
 	set_socket_transport(&req.socket, SIP_TRANSPORT_UDP);
 	req.socket.tcptls_session	= NULL;




More information about the asterisk-commits mailing list