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

src/viced/host.c

index bb1f172f45eaf89b17021ca83c69ac34f9f7bf11..56af963e266288028d9de3fd9ca8805ac94e4ed2 100644 (file)
@@ -464,7 +464,7 @@ h_gethostcps_r(register struct host *host, register afs_int32 now)
     host->cpsCall = slept ? (FT_ApproxTime()) : (now);
 
     H_UNLOCK;
-    code = pr_GetHostCPS(host->host, &host->hcps);
+    code = pr_GetHostCPS(ntohl(host->host), &host->hcps);
     H_LOCK;
     if (code) {
        /*