mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 13:38:01 +00:00
DEVEL15-h-enum-r-avoid-extra-hold-20061008
FIXES 40699 avoid orphaning an extra hold (cherry picked from commit 747a8d8f41a34290c207327541372b4e1fcb0dec)
This commit is contained in:
parent
ad65410756
commit
355cf8ce5d
@ -1122,9 +1122,12 @@ h_Enumerate_r(int (*proc) (), struct host *enumstart, char *param)
|
|||||||
held = (*proc) (host, held, param);
|
held = (*proc) (host, held, param);
|
||||||
if (!H_ENUMERATE_ISSET_HELD(held))
|
if (!H_ENUMERATE_ISSET_HELD(held))
|
||||||
h_Release_r(host); /* this might free up the host */
|
h_Release_r(host); /* this might free up the host */
|
||||||
if (H_ENUMERATE_ISSET_BAIL(held))
|
if (H_ENUMERATE_ISSET_BAIL(held)) {
|
||||||
|
if (!H_ENUMERATE_ISSET_HELD(nheld))
|
||||||
|
h_Release_r(next); /* this might free up the host */
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} /*h_Enumerate_r */
|
} /*h_Enumerate_r */
|
||||||
|
|
||||||
/* inserts a new HashChain structure corresponding to this UUID */
|
/* inserts a new HashChain structure corresponding to this UUID */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user