From a0f0be1295440c36a24de4c892ef298f571b92c6 Mon Sep 17 00:00:00 2001 From: Andrew Deason Date: Tue, 29 Nov 2011 12:07:49 -0600 Subject: [PATCH] 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 --- src/ubik/udebug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5