[asterisk-commits] simon.perreault: branch group/v6-new r273186 - /team/group/v6-new/channels/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jun 30 08:32:51 CDT 2010


Author: simon.perreault
Date: Wed Jun 30 08:32:47 2010
New Revision: 273186

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=273186
Log:
Use htons() instead of ntohs().

Modified:
    team/group/v6-new/channels/chan_sip.c

Modified: team/group/v6-new/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/team/group/v6-new/channels/chan_sip.c?view=diff&rev=273186&r1=273185&r2=273186
==============================================================================
--- team/group/v6-new/channels/chan_sip.c (original)
+++ team/group/v6-new/channels/chan_sip.c Wed Jun 30 08:32:47 2010
@@ -11836,7 +11836,7 @@
 		set_socket_transport(&p->socket, r->transport);
 		if (r->transport == SIP_TRANSPORT_TLS || r->transport == SIP_TRANSPORT_TCP) {
 			p->socket.port =
-			    ntohs(ast_sockaddr_port(&sip_tcp_desc.local_address));
+			    htons(ast_sockaddr_port(&sip_tcp_desc.local_address));
 		}
 
 		/*




More information about the asterisk-commits mailing list