mirror of
				git://erdgeist.org/opentracker
				synced 2025-11-04 03:43:23 +08:00 
			
		
		
		
	Bugfix: overwrote bencoded data with udp reply data when sending an event=stopped
This commit is contained in:
		
							parent
							
								
									fae73214af
								
							
						
					
					
						commit
						0dafc2ab26
					
				@ -320,7 +320,7 @@ exit_loop:
 | 
				
			|||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  /* Handle UDP reply */
 | 
					  /* Handle UDP reply */
 | 
				
			||||||
  if( proto == FLAG_TCP ) {
 | 
					  if( proto == FLAG_UDP ) {
 | 
				
			||||||
    ((uint32_t*)reply)[2] = htonl( OT_CLIENT_REQUEST_INTERVAL_RANDOM );
 | 
					    ((uint32_t*)reply)[2] = htonl( OT_CLIENT_REQUEST_INTERVAL_RANDOM );
 | 
				
			||||||
    ((uint32_t*)reply)[3] = htonl( peer_list->peer_count - peer_list->seed_count );
 | 
					    ((uint32_t*)reply)[3] = htonl( peer_list->peer_count - peer_list->seed_count );
 | 
				
			||||||
    ((uint32_t*)reply)[4] = htonl( peer_list->seed_count);
 | 
					    ((uint32_t*)reply)[4] = htonl( peer_list->seed_count);
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user