mirror of
https://github.com/asterisk/asterisk.git
synced 2026-01-06 18:13:45 +00:00
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/branches/1.4@232350 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -534,7 +534,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");
|
||||
|
||||
Reference in New Issue
Block a user