]> git.ipfire.org Git - thirdparty/opentracker.git/commitdiff
fixed udp peerport endianess handling
authordenis <>
Tue, 13 Mar 2007 23:31:06 +0000 (23:31 +0000)
committerdenis <>
Tue, 13 Mar 2007 23:31:06 +0000 (23:31 +0000)
opentracker.c

index 7217f630596c2d9a4fbbe1b1a082158c5caa71ac..d8d960b039a6a6c38c31944965fee89eb09eb60d 100644 (file)
@@ -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 );