aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2010-05-21 20:38:14 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2010-05-21 20:38:14 +0000
commitf1414514faf46af046920f75933abb5838a48ded (patch)
treea9d2147ffded33518d0f6e21e82e247ed5274b0b
parent36b1b46a37d601755c83013b9bb65be30e3cdb9f (diff)
Be sure to set the sin_family on the proxy when allocating.
(closes issue #17157) Reported by: stuarth git-svn-id: http://svn.digium.com/svn/asterisk/trunk@265087 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--channels/chan_sip.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 9642f3de1..9f34fff4c 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -2879,6 +2879,7 @@ static struct sip_proxy *proxy_allocate(char *name, char *port, int force)
proxy->force = force;
ast_copy_string(proxy->name, name, sizeof(proxy->name));
proxy->ip.sin_port = htons(port_str2int(port, STANDARD_SIP_PORT));
+ proxy->ip.sin_family = AF_INET;
proxy_update(proxy);
return proxy;
}