2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

Merge branch '1149-restore-locking-in-resume_dslookup' into 'master'

Restore locking in resume_dslookup()

Closes #1149

See merge request isc-projects/bind9!2184
This commit is contained in:
Ondřej Surý
2019-07-23 07:02:44 -04:00

View File

@@ -7186,7 +7186,9 @@ resume_dslookup(isc_task_t *task, isc_event_t *event) {
if (dns_rdataset_isassociated(&nameservers)) {
dns_rdataset_disassociate(&nameservers);
}
LOCK(&res->buckets[fctx->bucketnum].lock);
bucket_empty = fctx_decreference(fctx);
UNLOCK(&res->buckets[fctx->bucketnum].lock);
if (bucket_empty) {
empty_bucket(res);
}