aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2010-05-21 20:38:46 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2010-05-21 20:38:46 +0000
commit0e9df3f459c73c5f4ccc1e77f71a6cd38af1848e (patch)
treea9d204a3e8786829a567cab7614744928b7465e2 /channels
parentf4821aa327cfdc51abcfb04deb19cec291faecfa (diff)
Merged revisions 265087 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r265087 | mmichelson | 2010-05-21 15:38:14 -0500 (Fri, 21 May 2010) | 7 lines 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/branches/1.6.2@265088 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-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 6736ab86c..52fd9ce88 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -3333,6 +3333,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;
}