From: Derrick Brashear Date: Mon, 7 Apr 2003 18:38:56 +0000 (+0000) Subject: flushhostcps-20030407 X-Git-Tag: openafs-devel-1_3_50~275 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=dd517125c21e010954989d60caa31bc2da7ca394;p=packages%2Fo%2Fopenafs.git flushhostcps-20030407 make it so flushhostcps can't try to Release when no host was found, which was apparently the problem dlc@cs really observed. --- diff --git a/src/viced/host.c b/src/viced/host.c index 890491044..fdcb6dc35 100644 --- a/src/viced/host.c +++ b/src/viced/host.c @@ -504,10 +504,10 @@ void h_flushhostcps(register afs_uint32 hostaddr, register afs_uint32 hport) H_LOCK host = h_Lookup_r(hostaddr, hport, &held); if (host) { - host->hcpsfailed = 1; + host->hcpsfailed = 1; + if (!held) + h_Release_r(host); } - if (!held) - h_Release_r(host); H_UNLOCK return;