aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2009-06-26 20:46:55 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2009-06-26 20:46:55 +0000
commit31eb051cdc79210006408ebf927b932eefda0a9e (patch)
treeb496b2d99a6e832662f2cbf96828151575c8456b /channels
parentb5394bd2e8f12a3b59642610c9e160bb47e55723 (diff)
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
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c2
1 files changed, 2 insertions, 0 deletions
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);