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

(cherry picked from commit 1904db3fa3a0765f63ae4ecac23a8464818f1e9c)

src/viced/host.c

index 216ee83d64d0fe79f8ebf074bc31a5a34e527c9e..01de6ee3dbc3e93165a307c78d857fbd746b99e5 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(ntohl(host->host), &host->hcps);
+    code = pr_GetHostCPS(host->host, &host->hcps);
     H_LOCK;
     if (code) {
        /*