aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b>2009-12-02 17:02:30 +0000
committerdvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b>2009-12-02 17:02:30 +0000
commit09a11457f1f48cacfe1730b36f0b9376204a0a70 (patch)
tree860508cccf01eff093e1db75cf2bc3e291700997
parenta6abd723ce3c80bb2839eb8c4ef5f2346dfaee97 (diff)
Merged revisions 232351 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ................ r232351 | dvossel | 2009-12-02 11:00:15 -0600 (Wed, 02 Dec 2009) | 12 lines Merged revisions 232350 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r232350 | dvossel | 2009-12-02 10:59:18 -0600 (Wed, 02 Dec 2009) | 6 lines ast_outaddrfor doesn't do htons() on port, looks odd in strace. (closes issue #16290) Reported by: wdoekes ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.1@232353 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--main/acl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/acl.c b/main/acl.c
index 65be13046..7a431036e 100644
--- a/main/acl.c
+++ b/main/acl.c
@@ -473,7 +473,7 @@ int ast_ouraddrfor(struct in_addr *them, struct in_addr *us)
return -1;
}
sin.sin_family = AF_INET;
- sin.sin_port = 5060;
+ sin.sin_port = htons(5060);
sin.sin_addr = *them;
if (connect(s, (struct sockaddr *)&sin, sizeof(sin))) {
ast_log(LOG_WARNING, "Cannot connect\n");