aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authordvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b>2009-11-25 21:23:41 +0000
committerdvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b>2009-11-25 21:23:41 +0000
commit722796cea313ae071699609a538ccc29665089da (patch)
treecc68367f69d1a19cc7046b20838151b574406b38 /channels
parentfae8ea15b066fece5f9534da27c70f5e041a6b1c (diff)
fixes conditional jump or move depending on uninitialised STACK value
(closes issue #16261) Reported by: edguy3 Patches: edguy16261.patch uploaded by edguy3 (license 917) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@231233 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 48afb798b..2d2d899d7 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -5692,7 +5692,7 @@ static int process_sdp(struct sip_pvt *p, struct sip_request *req)
isin.sin_family = AF_INET;
isin.sin_port = htons(udptlportno);
if (ast_test_flag(&p->flags[0], SIP_NAT) && ast_test_flag(&p->flags[1], SIP_PAGE2_UDPTL_DESTINATION)) {
- struct sockaddr_in peer;
+ struct sockaddr_in peer = { 0, };
ast_rtp_get_peer(p->rtp, &peer);
if (peer.sin_addr.s_addr) {
memcpy(&isin.sin_addr, &peer.sin_addr, sizeof(isin.sin_addr));
@@ -16932,7 +16932,7 @@ restartsearch:
(ast_rtp_get_rtptimeout(sip->rtp) || ast_rtp_get_rtpholdtimeout(sip->rtp)) &&
(t > sip->lastrtprx + ast_rtp_get_rtptimeout(sip->rtp))) {
/* Might be a timeout now -- see if we're on hold */
- struct sockaddr_in sin;
+ struct sockaddr_in sin = { 0, };
ast_rtp_get_peer(sip->rtp, &sin);
if (!ast_test_flag(&sip->flags[1], SIP_PAGE2_CALL_ONHOLD) ||
(ast_rtp_get_rtpholdtimeout(sip->rtp) &&