diff options
author | David Vossel <dvossel@digium.com> | 2009-12-02 17:00:15 +0000 |
---|---|---|
committer | David Vossel <dvossel@digium.com> | 2009-12-02 17:00:15 +0000 |
commit | edf6605ae743005984a228a6101640c6d592f48e (patch) | |
tree | d05b9c0cd3188c11d9612d5a4543f03f16fb60fc /main/acl.c | |
parent | 6a7f37e07d92d445863b5b942a6a26f00bfaee6c (diff) |
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: https://origsvn.digium.com/svn/asterisk/trunk@232351 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/acl.c')
-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 8daeb4a84..5ee6ef0fb 100644 --- a/main/acl.c +++ b/main/acl.c @@ -482,7 +482,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"); |