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

clear fctx->magic and fetch->magic when destroying

fctx_destroy() and dns_resolver_destroyfetch() did not clear the
'magic' field during destruction.
This commit is contained in:
Evan Hunt
2022-07-11 16:55:48 -07:00
committed by Mark Andrews
parent 24e52a623f
commit 5ec077e6aa

View File

@@ -4360,6 +4360,8 @@ fctx_destroy(fetchctx_t *fctx) {
FCTXTRACE("destroy");
fctx->magic = 0;
res = fctx->res;
bucket = fctx->bucket;
@@ -10866,6 +10868,8 @@ dns_resolver_destroyfetch(dns_fetch_t **fetchp) {
FTRACE("destroyfetch");
fetch->magic = 0;
LOCK(&fctx->bucket->lock);
/*