[asterisk-commits] file: trunk r100549 - /trunk/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Jan 28 07:57:39 CST 2008


Author: file
Date: Mon Jan 28 07:57:38 2008
New Revision: 100549

URL: http://svn.digium.com/view/asterisk?view=rev&rev=100549
Log:
Don't do a network byte order conversion when setting the socket's port variable to that of bindaddr's. It is already in the correct network byte order.
(closes issue #11800)
Reported by: hmodes

Modified:
    trunk/channels/chan_sip.c

Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?view=diff&rev=100549&r1=100548&r2=100549
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Mon Jan 28 07:57:38 2008
@@ -17764,7 +17764,7 @@
 	req.socket.fd 	= sipsock;
 	req.socket.type = SIP_TRANSPORT_UDP;
 	req.socket.ser	= NULL;
-	req.socket.port = htons(bindaddr.sin_port);
+	req.socket.port = bindaddr.sin_port;
 	req.socket.lock = NULL;
 
 	handle_request_do(&req, &sin);




More information about the asterisk-commits mailing list