mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-29 18:19:30 +00:00
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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user