From 036e874ed431b9f53a16afb568790d03cf6f1fc2 Mon Sep 17 00:00:00 2001 From: denis <> Date: Tue, 13 Mar 2007 23:31:06 +0000 Subject: fixed udp peerport endianess handling --- opentracker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'opentracker.c') diff --git a/opentracker.c b/opentracker.c index 7217f63..d8d960b 100644 --- a/opentracker.c +++ b/opentracker.c @@ -587,7 +587,7 @@ static void handle_udp4( int64 serversocket ) { /* We do only want to know, if it is zero */ left = inpacket[64/4] | inpacket[68/4]; event = ntohl( inpacket[80/4] ); - port = ntohs( *(unsigned short*)( static_inbuf + 96 ) ); + port = *(unsigned short*)( static_inbuf + 96 ); hash = (ot_hash*)( static_inbuf + 16 ); OT_SETIP( &peer, remoteip ); -- cgit v1.2.3