]> granicus.if.org Git - transmission/commitdiff
(trunk libT) fix another endian oops
authorErick Turnquist <jhujhiti@adjectivism.org>
Thu, 1 Jan 2009 00:23:09 +0000 (00:23 +0000)
committerErick Turnquist <jhujhiti@adjectivism.org>
Thu, 1 Jan 2009 00:23:09 +0000 (00:23 +0000)
libtransmission/net.c

index 1d292636f02815af197c12dac26e178bb09cd46b..df31ad8661bda63c6850178417d887e615cdb99a 100644 (file)
@@ -417,7 +417,7 @@ tr_netOpenTCP( tr_session        * session,
     assert( tr_isAddress( addr ) );
 
     /* 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;
     if( addr->type == TR_AF_INET6 && ( addr->addr.addr6.s6_addr[0] & 0xff ) )
         return -EINVAL;