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

src/viced/host.c

index 5f2f940decaba54100c8ed8afec6fadcc8434b65..066036e2749b97150fdd0957107a6ff0ad1c7249 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(ntohl(host->host), &host->hcps);
+    code = pr_GetHostCPS(host->host, &host->hcps);
     H_LOCK;
     if (code) {
        /*