Changeset 7562


Ignore:
Timestamp:
Jan 1, 2009, 12:15:15 AM (12 years ago)
Author:
jhujhiti
Message:

(trunk libT) fix endian oops in tr_suspectAddress()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/net.c

    r7561 r7562  
    7373{
    7474    /* be really aggressive in what we report */
    75     if( a->type == TR_AF_INET && !( a->addr.addr4.s_addr & 0xff000000 ) )
     75    if( a->type == TR_AF_INET && !( ntohl( a->addr.addr4.s_addr ) & 0xff000000 ) )
    7676        tr_err(  "Funny looking address %s from %s", tr_ntop_non_ts( a ), source );
    7777    /* /16s taken from ipv6 rib on 21 dec, 2008 */
Note: See TracChangeset for help on using the changeset viewer.