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


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@100549 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Joshua Colp
2008-01-28 13:57:38 +00:00
parent 87800e1913
commit 9cbe2622b6

View 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);