]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-ubik-multihome-byte-order-problem-20040818
authorHartmut Reuter <reuter@rzg.mpg.de>
Wed, 25 Aug 2004 08:11:03 +0000 (08:11 +0000)
committerDerrick Brashear <shadow@dementia.org>
Wed, 25 Aug 2004 08:11:03 +0000 (08:11 +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"

(cherry picked from commit 6f1cd5a43e1240ecc7a964b8236e25e1d0e46fca)

src/ubik/beacon.c

index 645283b3e5d8bfeca1d007cf8c2f79a08bf43454..e4f6bddb6c35e57141f206a68ca94d9709dd7f26 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) {