diff options
author | dvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-12-02 17:03:26 +0000 |
---|---|---|
committer | dvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-12-02 17:03:26 +0000 |
commit | 59dab58ea7674f22723757df505c7614649ffb5c (patch) | |
tree | 74b0a101b655df28f6bc8cefeb76e35401bf1454 | |
parent | 87ffc0ba70027d1fcab5eb5e5935b42eaace164a (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.0@232354 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | main/acl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/acl.c b/main/acl.c index f97bc470f..e70b122af 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"); |