1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-24 16:52:39 +00:00

(trunk libT) fix another endian oops

This commit is contained in:
Erick Turnquist 2009-01-01 00:23:09 +00:00
parent 37ac4b3fbf
commit bd5463a37e

View file

@ -417,7 +417,7 @@ tr_netOpenTCP( tr_session * session,
assert( tr_isAddress( addr ) ); assert( tr_isAddress( addr ) );
/* don't try to connect to multicast addresses */ /* don't try to connect to multicast addresses */
if( addr->type == TR_AF_INET && ( addr->addr.addr4.s_addr & 0xe0000000 ) ) if( addr->type == TR_AF_INET && ( ntohl( addr->addr.addr4.s_addr ) & 0xe0000000 ) )
return -EINVAL; return -EINVAL;
if( addr->type == TR_AF_INET6 && ( addr->addr.addr6.s6_addr[0] & 0xff ) ) if( addr->type == TR_AF_INET6 && ( addr->addr.addr6.s6_addr[0] & 0xff ) )
return -EINVAL; return -EINVAL;