ubik-multihome-byte-order-problem-20040818
authorHartmut Reuter <reuter@rzg.mpg.de>
Thu, 19 Aug 2004 01:28:29 +0000 (01:28 +0000)
committerDerrick Brashear <shadow@dementia.org>
Thu, 19 Aug 2004 01:28:29 +0000 (01:28 +0000)
"Playing around with multi-address database servers on little-endian machines
I found out that there is one conversion of the ip-address too much"

src/ubik/beacon.c

index 9d836d1..1a25a0c 100644 (file)
@@ -570,7 +570,7 @@ verifyInterfaceAddress(ame, info, aservers)
        for (i = 0; i < totalServers; i++) {
            if (info)
                tmpAddr =
-                   ntohl((afs_uint32) info->hostAddr[i].sin_addr.s_addr);
+                   (afs_uint32) info->hostAddr[i].sin_addr.s_addr;
            else
                tmpAddr = aservers[i];
            if (myAddr[j] == tmpAddr) {