[asterisk-commits] dvossel: branch 1.4 r232350 - /branches/1.4/main/acl.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Dec 2 10:59:22 CST 2009


Author: dvossel
Date: Wed Dec  2 10:59:18 2009
New Revision: 232350

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=232350
Log:
ast_outaddrfor doesn't do htons() on port, looks odd in strace.

(closes issue #16290)
Reported by: wdoekes


Modified:
    branches/1.4/main/acl.c

Modified: branches/1.4/main/acl.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.4/main/acl.c?view=diff&rev=232350&r1=232349&r2=232350
==============================================================================
--- branches/1.4/main/acl.c (original)
+++ branches/1.4/main/acl.c Wed Dec  2 10:59:18 2009
@@ -534,7 +534,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