mirror of
https://github.com/isc-projects/bind9.git
synced 2026-04-26 16:47:31 -04:00
ADB entries could be unlinked too soon
due to a typo in the code, ADB entries were unlinked from their entry buckets during shutdown if they had a nonzero reference count. they were only supposed to be unlinked if the reference count was exactly one (that being the reference held by the bucket itself).
This commit is contained in:
parent
cab15392af
commit
73ff8850bf
1 changed files with 1 additions and 1 deletions
|
|
@ -1009,7 +1009,7 @@ shutdown_entries(dns_adb_t *adb) {
|
|||
* entries not in use.
|
||||
*/
|
||||
next_entry = ISC_LIST_NEXT(entry, plink);
|
||||
if (isc_refcount_current(&entry->references) &&
|
||||
if (isc_refcount_current(&entry->references) == 1 &&
|
||||
entry->expires == 0) {
|
||||
unlink_entry(entry);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue