From dd517125c21e010954989d60caa31bc2da7ca394 Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Mon, 7 Apr 2003 18:38:56 +0000 Subject: [PATCH] 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. --- src/viced/host.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; -- 2.39.5