From 0e17939eb657b27332c6cb8dfca9b41775f51abb Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Thu, 30 Mar 2006 17:29:22 +0000 Subject: [PATCH] STABLE14-viced-gethostcps-byte-order-20060328 don't call GetHostCPS after swapping away from net byte order (cherry picked from commit d387dba5efc88b14696b72e6b18cfb1af264be04) --- src/viced/host.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/viced/host.c b/src/viced/host.c index a6cc7866f..e7c6b11a5 100644 --- a/src/viced/host.c +++ b/src/viced/host.c @@ -450,7 +450,7 @@ h_gethostcps_r(register struct host *host, register afs_int32 now) slept ? (host->cpsCall = FT_ApproxTime()) : (host->cpsCall = now); H_UNLOCK; - code = pr_GetHostCPS(host->host, &host->hcps); + code = pr_GetHostCPS(ntohl(host->host), &host->hcps); H_LOCK; if (code) { /* -- 2.39.5