mirror of
				git://erdgeist.org/opentracker
				synced 2025-11-04 11:53:22 +08:00 
			
		
		
		
	Port is a short, not a long
This commit is contained in:
		
							parent
							
								
									4c3eb0216e
								
							
						
					
					
						commit
						5b55394cdc
					
				@ -586,8 +586,8 @@ static void handle_udp4( int64 serversocket ) {
 | 
				
			|||||||
      numwant = 200;
 | 
					      numwant = 200;
 | 
				
			||||||
      left  = ntohl( inpacket[64/4] );
 | 
					      left  = ntohl( inpacket[64/4] );
 | 
				
			||||||
      event = ntohl( inpacket[80/4] );
 | 
					      event = ntohl( inpacket[80/4] );
 | 
				
			||||||
      port  = ntohl( inpacket[96/4] );
 | 
					      port  = ntohs( *(unsigned short*)( static_inbuf + 96 ) );
 | 
				
			||||||
      hash  = (ot_hash*)inpacket+(16/4);
 | 
					      hash  = (ot_hash*)( static_inbuf + 16 );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      OT_SETIP( &peer, remoteip );
 | 
					      OT_SETIP( &peer, remoteip );
 | 
				
			||||||
      OT_SETPORT( &peer, &port );
 | 
					      OT_SETPORT( &peer, &port );
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user