mirror of
				git://erdgeist.org/opentracker
				synced 2025-11-04 11:53:22 +08:00 
			
		
		
		
	Fix endianess issue in /24 stats code
This commit is contained in:
		
							parent
							
								
									afe966b644
								
							
						
					
					
						commit
						d49c1d5960
					
				@ -656,8 +656,8 @@ size_t return_stats_for_slash24s( char *reply, size_t amount, ot_dword thresh )
 | 
				
			|||||||
        ot_peer *peers =    peer_list->peers[k].data;
 | 
					        ot_peer *peers =    peer_list->peers[k].data;
 | 
				
			||||||
        size_t   numpeers = peer_list->peers[k].size;
 | 
					        size_t   numpeers = peer_list->peers[k].size;
 | 
				
			||||||
        for( l=0; l<numpeers; ++l )
 | 
					        for( l=0; l<numpeers; ++l )
 | 
				
			||||||
          if( ++count[ (*(ot_dword*)(peers+l))>>8 ] == 65335 )
 | 
					          if( ++count[ ntohl(*(ot_dword*)(peers+l))>>8 ] == 65335 )
 | 
				
			||||||
            count[ (*(ot_dword*)(peers+l))>>8 ] = 65334;
 | 
					            count[ ntohl(*(ot_dword*)(peers+l))>>8 ] = 65334;
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user