aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2010-06-02 18:13:18 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2010-06-02 18:13:18 +0000
commit9819f40684ac430b36a7b014eff1fa665083e419 (patch)
tree753ba5beaf3790709124c8e6991c97604e407bcd /channels
parent245c5d9eb8a3742b31fe08e4d674100fe8292cc0 (diff)
Prevent use of uninitialized values.
Two struct sockaddr_ins are created when applying directmedia host access rules. The addresses of these are passed to the RTP engine to be filled in. However, the RTP engine inspects the fields of the structs before actually taking action. This inspection caused valgrind to be a bit unhappy. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@267097 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 6c4cba72a..8fb16b406 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -26537,7 +26537,7 @@ static int reload_config(enum channelreloadreason reason)
static int apply_directmedia_ha(struct sip_pvt *p, const char *op)
{
- struct sockaddr_in us, them;
+ struct sockaddr_in us = {0,}, them = {0,};
int res;
ast_rtp_instance_get_remote_address(p->rtp, &them);