dect
/
asterisk
Archived
13
0
Fork 0

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/trunk@232351 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
dvossel 2009-12-02 17:00:15 +00:00
parent a8f66229ae
commit a0342a6557
1 changed files with 1 additions and 1 deletions

View File

@ -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");