[asterisk-commits] dvossel: branch 1.6.1 r232353 - in /branches/1.6.1: ./ main/acl.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Dec 2 11:02:34 CST 2009


Author: dvossel
Date: Wed Dec  2 11:02:30 2009
New Revision: 232353

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=232353
Log:
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
  ........
................

Modified:
    branches/1.6.1/   (props changed)
    branches/1.6.1/main/acl.c

Propchange: branches/1.6.1/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.

Modified: branches/1.6.1/main/acl.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.1/main/acl.c?view=diff&rev=232353&r1=232352&r2=232353
==============================================================================
--- branches/1.6.1/main/acl.c (original)
+++ branches/1.6.1/main/acl.c Wed Dec  2 11:02:30 2009
@@ -473,7 +473,7 @@
 		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");




More information about the asterisk-commits mailing list