mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-10 23:30:00 -04:00
Merge branch '2962-invalid-fctx-v9_18' into 'v9_18'
clear fctx->magic and fetch->magic when destroying See merge request isc-projects/bind9!6554
This commit is contained in:
commit
2d5ad9cd49
1 changed files with 4 additions and 0 deletions
|
|
@ -4366,6 +4366,8 @@ fctx_destroy(fetchctx_t *fctx, bool exiting) {
|
|||
|
||||
FCTXTRACE("destroy");
|
||||
|
||||
fctx->magic = 0;
|
||||
|
||||
res = fctx->res;
|
||||
bucketnum = fctx->bucketnum;
|
||||
|
||||
|
|
@ -10936,6 +10938,8 @@ dns_resolver_destroyfetch(dns_fetch_t **fetchp) {
|
|||
|
||||
FTRACE("destroyfetch");
|
||||
|
||||
fetch->magic = 0;
|
||||
|
||||
bucketnum = fctx->bucketnum;
|
||||
LOCK(&res->buckets[bucketnum].lock);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue