summaryrefslogtreecommitdiff
path: root/channels/chan_sip.c
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2009-04-10 18:02:44 +0000
committerJoshua Colp <jcolp@digium.com>2009-04-10 18:02:44 +0000
commit8e4b5df187d51d7a64532dd6b0c9ea93d3cb2e90 (patch)
tree0541c92580c50ebd237c5e8f81543b5ec71bb515 /channels/chan_sip.c
parentdf28954a84f6f161efada39db61ff8a33b4f987a (diff)
Fix some uninitialized memory notices that appeared under valgrind.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@187772 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_sip.c')
-rw-r--r--channels/chan_sip.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 8b6aef710..924405e6b 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -7752,7 +7752,7 @@ static int process_sdp(struct sip_pvt *p, struct sip_request *req, int t38action
if (udptlportno > 0) {
sin.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 remote_address;
+ struct sockaddr_in remote_address = { 0, };
ast_rtp_instance_get_remote_address(p->rtp, &remote_address);
if (remote_address.sin_addr.s_addr) {
memcpy(&sin, &remote_address, sizeof(sin));
@@ -9382,11 +9382,11 @@ static enum sip_result add_sdp(struct sip_request *resp, struct sip_pvt *p, int
int len = 0;
int alreadysent = 0;
- struct sockaddr_in sin;
- struct sockaddr_in vsin;
- struct sockaddr_in tsin;
- struct sockaddr_in dest;
- struct sockaddr_in udptlsin;
+ struct sockaddr_in sin = { 0, };
+ struct sockaddr_in vsin = { 0, };
+ struct sockaddr_in tsin = { 0, };
+ struct sockaddr_in dest = { 0, };
+ struct sockaddr_in udptlsin = { 0, };
struct sockaddr_in vdest = { 0, };
struct sockaddr_in tdest = { 0, };
struct sockaddr_in udptldest = { 0, };