Don't do a network byte order conversion when setting the socket's port variable...
authorJoshua Colp <jcolp@digium.com>
Mon, 28 Jan 2008 13:57:38 +0000 (13:57 +0000)
committerJoshua Colp <jcolp@digium.com>
Mon, 28 Jan 2008 13:57:38 +0000 (13:57 +0000)
(closes issue #11800)
Reported by: hmodes

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@100549 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index f5fbc11..159e194 100644 (file)
@@ -17764,7 +17764,7 @@ static int sipsock_read(int *id, int fd, short events, void *ignore)
        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);