summaryrefslogtreecommitdiff
path: root/opentracker.c
diff options
context:
space:
mode:
authorerdgeist <>2007-03-08 01:24:47 +0000
committererdgeist <>2007-03-08 01:24:47 +0000
commit5b55394cdc4f3ab1daa784291f8b66b5c0c419de (patch)
treecbceec25101e9a4d1cde6a69a8a94fc91361475a /opentracker.c
parent4c3eb0216ed02445c5ef0b63a63a2c2d49c2cae0 (diff)
Port is a short, not a long
Diffstat (limited to 'opentracker.c')
-rw-r--r--opentracker.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/opentracker.c b/opentracker.c
index e286a24..656764d 100644
--- a/opentracker.c
+++ b/opentracker.c
@@ -586,8 +586,8 @@ static void handle_udp4( int64 serversocket ) {
586 numwant = 200; 586 numwant = 200;
587 left = ntohl( inpacket[64/4] ); 587 left = ntohl( inpacket[64/4] );
588 event = ntohl( inpacket[80/4] ); 588 event = ntohl( inpacket[80/4] );
589 port = ntohl( inpacket[96/4] ); 589 port = ntohs( *(unsigned short*)( static_inbuf + 96 ) );
590 hash = (ot_hash*)inpacket+(16/4); 590 hash = (ot_hash*)( static_inbuf + 16 );
591 591
592 OT_SETIP( &peer, remoteip ); 592 OT_SETIP( &peer, remoteip );
593 OT_SETPORT( &peer, &port ); 593 OT_SETPORT( &peer, &port );