From 31eb051cdc79210006408ebf927b932eefda0a9e Mon Sep 17 00:00:00 2001 From: russell Date: Fri, 26 Jun 2009 20:46:55 +0000 Subject: Merged revisions 203779 via svnmerge from https://origsvn.digium.com/svn/asterisk/trunk ........ r203779 | russell | 2009-06-26 15:45:00 -0500 (Fri, 26 Jun 2009) | 5 lines Ensure the TCP read buffer is fully initialized before handling each packet. (closes issue #14452) Reported by: umberto71 ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@203780 f38db490-d61c-443f-a65b-d21fe96a405b --- channels/chan_sip.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'channels') diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 41325d169..592a83414 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -2247,6 +2247,8 @@ static void *_sip_tcp_helper_thread(struct sip_pvt *pvt, struct ast_tcptls_sessi req.ignore = 0; req.debug = 0; + memset(buf, 0, sizeof(buf)); + if (tcptls_session->ssl) { set_socket_transport(&req.socket, SIP_TRANSPORT_TLS); req.socket.port = htons(ourport_tls); -- cgit v1.2.3