[asterisk-commits] russell: trunk r203779 - /trunk/channels/chan_sip.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Jun 26 15:45:11 CDT 2009
Author: russell
Date: Fri Jun 26 15:45:00 2009
New Revision: 203779
URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=203779
Log:
Ensure the TCP read buffer is fully initialized before handling each packet.
(closes issue #14452)
Reported by: umberto71
Modified:
trunk/channels/chan_sip.c
Modified: trunk/channels/chan_sip.c
URL: http://svn.asterisk.org/svn-view/asterisk/trunk/channels/chan_sip.c?view=diff&rev=203779&r1=203778&r2=203779
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Fri Jun 26 15:45:00 2009
@@ -2903,6 +2903,8 @@
reqcpy.data = str_save;
ast_str_reset(reqcpy.data);
+ memset(buf, 0, sizeof(buf));
+
if (tcptls_session->ssl) {
set_socket_transport(&req.socket, SIP_TRANSPORT_TLS);
req.socket.port = htons(ourport_tls);
More information about the asterisk-commits
mailing list