]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
udebug: Fix endianness when fudging lastYesHost
authorAndrew Deason <adeason@sinenomine.net>
Tue, 29 Nov 2011 18:07:49 +0000 (12:07 -0600)
committerStephan Wiesand <stephan.wiesand@desy.de>
Thu, 4 Apr 2013 09:25:14 +0000 (02:25 -0700)
hostAddr is in NBO, lastYesHost is in HBO.

Reviewed-on: http://gerrit.openafs.org/6136
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
(cherry picked from commit 073edd3fbdf442249920acea8f3ee90b6346bf23)

Change-Id: Iea4f7799c8f5500010448d6104cc9f701663d826
Reviewed-on: http://gerrit.openafs.org/9437
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
src/ubik/udebug.c

index 0bb74285005cf86d1ad361de736acfaf5e1be8e0..d02bd718c88a4640da7466ca788d18b7aeda9067 100644 (file)
@@ -179,7 +179,7 @@ CommandProc(struct cmd_syndesc *as, void *arock)
 
     /* UBIK skips the voting if 1 server - so we fudge it here */
     if (udebug.amSyncSite && (udebug.nServers == 1)) {
-       udebug.lastYesHost = hostAddr;
+       udebug.lastYesHost = ntohl(hostAddr);
        udebug.lastYesTime = udebug.now;
        udebug.lastYesState = 1;
        udebug.lastYesClaim = udebug.now;