diff options
author | Russell Bryant <russell@russellbryant.com> | 2011-05-03 22:16:23 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2011-05-03 22:16:23 +0000 |
commit | 95561bd37a40d9c2ff383aee1ed41cb0363b35c1 (patch) | |
tree | 2202a650849e9a203d80bbd13abbd2a5716881f7 /channels/chan_mgcp.c | |
parent | f4417923ce6e156cb6db59a04b95893abfe28778 (diff) |
Merged revisions 316336 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8
........
r316336 | russell | 2011-05-03 17:13:31 -0500 (Tue, 03 May 2011) | 8 lines
Use htons() instead of ntohs() in some places.
(closes issue #19200)
Reported by: wdoekes
Patches:
issue19200-trunk.patch uploaded by wdoekes (license 717)
issue19200-1.8.x.patch uploaded by wdoekes (license 717)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@316337 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_mgcp.c')
-rw-r--r-- | channels/chan_mgcp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_mgcp.c b/channels/chan_mgcp.c index e98b24f61..f71948bd4 100644 --- a/channels/chan_mgcp.c +++ b/channels/chan_mgcp.c @@ -4746,7 +4746,7 @@ static int reload_config(int reload) memcpy(&__ourip, hp->h_addr, sizeof(__ourip)); } if (!ntohs(bindaddr.sin_port)) - bindaddr.sin_port = ntohs(DEFAULT_MGCP_CA_PORT); + bindaddr.sin_port = htons(DEFAULT_MGCP_CA_PORT); bindaddr.sin_family = AF_INET; ast_mutex_lock(&netlock); if (mgcpsock > -1) |