diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-06-26 20:50:20 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-06-26 20:50:20 +0000 |
commit | 281911961704c9004e5d922abd2c8124040fa4be (patch) | |
tree | bf3ee717f610a0e34793c1057ade0df45ece67b8 /channels | |
parent | a106841eeedbdd5093497352cf303d6fcb4db0d3 (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.2@203782 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index ddbc92612..985b714f9 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -2771,6 +2771,8 @@ static void *_sip_tcp_helper_thread(struct sip_pvt *pvt, struct ast_tcptls_sessi 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); |