]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-viced-gethostcps-byte-order-20060328
authorDerrick Brashear <shadow@dementia.org>
Thu, 30 Mar 2006 17:29:22 +0000 (17:29 +0000)
committerDerrick Brashear <shadow@dementia.org>
Thu, 30 Mar 2006 17:29:22 +0000 (17:29 +0000)
don't call GetHostCPS after swapping away from net byte order

(cherry picked from commit d387dba5efc88b14696b72e6b18cfb1af264be04)

src/viced/host.c

index a6cc7866f79602b72e31275bb73d8d3626dbbf1b..e7c6b11a502d5d0ffabf4b6a49f3fffa9df5290d 100644 (file)
@@ -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) {
        /*