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: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@232354 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
David Vossel
2009-12-02 17:03:26 +00:00
parent a73b397c54
commit e7b09710a0

View File

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