git://git.openafs.org
/
openafs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
flushhostcps-20030407
[openafs.git]
/
src
/
viced
/
host.c
diff --git
a/src/viced/host.c
b/src/viced/host.c
index
8904910
..
fdcb6dc
100644
(file)
--- 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;