(trunk libT) fix endian oops in tr_suspectAddress()
This commit is contained in:
parent
50d73a884f
commit
37ac4b3fbf
|
@ -72,7 +72,7 @@ void
|
|||
tr_suspectAddress( const tr_address * a, const char * source )
|
||||
{
|
||||
/* be really aggressive in what we report */
|
||||
if( a->type == TR_AF_INET && !( a->addr.addr4.s_addr & 0xff000000 ) )
|
||||
if( a->type == TR_AF_INET && !( ntohl( a->addr.addr4.s_addr ) & 0xff000000 ) )
|
||||
tr_err( "Funny looking address %s from %s", tr_ntop_non_ts( a ), source );
|
||||
/* /16s taken from ipv6 rib on 21 dec, 2008 */
|
||||
/* this is really, really ugly. expedience over quality */
|
||||
|
|
Loading…
Reference in New Issue