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:
parent
37ac4b3fbf
commit
bd5463a37e
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue