Commit 5183f9d9 authored by Evan Hunt's avatar Evan Hunt
Browse files

[master] possible race in acache.c

3580.	[bug]		Addressed a possible race in acache.c [RT #33602]
parent c6114657
3580. [bug] Addressed a possible race in acache.c [RT #33602]
3579. [maint] Updates to PKCS#11 openssl patches, supporting
versions 0.9.8y, 1.0.0k, 1.0.1e [RT #33463]
......
......@@ -1669,13 +1669,14 @@ dns_acache_cancelentry(dns_acacheentry_t *entry) {
REQUIRE(DNS_ACACHEENTRY_VALID(entry));
acache = entry->acache;
callback_active = ISC_TF(entry->cbarg != NULL);
INSIST(DNS_ACACHE_VALID(entry->acache));
LOCK(&acache->lock);
ACACHE_LOCK(&acache->entrylocks[entry->locknum], isc_rwlocktype_write);
callback_active = ISC_TF(entry->cbarg != NULL);
/*
* Release dependencies stored in this entry as much as possible.
* The main link cannot be released, since the acache object has
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment