Changeset 7563


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

(trunk libT) fix another endian oops

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/net.c

    r7562 r7563  
    418418
    419419    /* don't try to connect to multicast addresses */
    420     if( addr->type == TR_AF_INET && ( addr->addr.addr4.s_addr & 0xe0000000 ) )
     420    if( addr->type == TR_AF_INET && ( ntohl( addr->addr.addr4.s_addr ) & 0xe0000000 ) )
    421421        return -EINVAL;
    422422    if( addr->type == TR_AF_INET6 && ( addr->addr.addr6.s6_addr[0] & 0xff ) )
Note: See TracChangeset for help on using the changeset viewer.