]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE12-ubik-multihome-byte-order-problem-20040818
authorHartmut Reuter <reuter@rzg.mpg.de>
Mon, 18 Oct 2004 05:53:03 +0000 (05:53 +0000)
committerDerrick Brashear <shadow@dementia.org>
Mon, 18 Oct 2004 05:53:03 +0000 (05:53 +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 e5f92f0375a5aa2617bb56e863d068e053908ad8..0fe7b77167b1a401cd0c92011ba0a72abd2f4edb 100644 (file)
@@ -549,7 +549,7 @@ static verifyInterfaceAddress(ame, info, aservers)
     {
        for ( i=0; i < totalServers; i++) {
             if (info)
-               tmpAddr = ntohl((afs_uint32) info->hostAddr[i].sin_addr.s_addr);
+               tmpAddr = (afs_uint32) info->hostAddr[i].sin_addr.s_addr;
            else 
                tmpAddr = aservers[i];
             if ( myAddr[j] == tmpAddr) {