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:
@@ -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);
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user