From: Andrew Deason Date: Tue, 29 Nov 2011 18:07:49 +0000 (-0600) Subject: udebug: Fix endianness when fudging lastYesHost X-Git-Tag: upstream/1.6.3^2~33 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=a0f0be1295440c36a24de4c892ef298f571b92c6;p=packages%2Fo%2Fopenafs.git udebug: Fix endianness when fudging lastYesHost hostAddr is in NBO, lastYesHost is in HBO. Reviewed-on: http://gerrit.openafs.org/6136 Tested-by: BuildBot Reviewed-by: Derrick Brashear (cherry picked from commit 073edd3fbdf442249920acea8f3ee90b6346bf23) Change-Id: Iea4f7799c8f5500010448d6104cc9f701663d826 Reviewed-on: http://gerrit.openafs.org/9437 Reviewed-by: Andrew Deason Reviewed-by: Derrick Brashear Reviewed-by: Stephan Wiesand Tested-by: BuildBot --- diff --git a/src/ubik/udebug.c b/src/ubik/udebug.c index 0bb742850..d02bd718c 100644 --- a/src/ubik/udebug.c +++ b/src/ubik/udebug.c @@ -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;