mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-08 22:42:04 -04:00
Clear qctx->zversion
Clear qctx->zversion when clearing qctx->zrdataset et al in lib/ns/query.c:qctx_freedata. The uncleared pointer could lead to an assertion failure if zone data needed to be re-saved which could happen with stale data support enabled.
This commit is contained in:
parent
b2cfdba565
commit
e52c2a654b
1 changed files with 1 additions and 0 deletions
|
|
@ -5411,6 +5411,7 @@ qctx_freedata(query_ctx_t *qctx) {
|
|||
ns_client_releasename(qctx->client, &qctx->zfname);
|
||||
dns_db_detachnode(qctx->zdb, &qctx->znode);
|
||||
dns_db_detach(&qctx->zdb);
|
||||
qctx->zversion = NULL;
|
||||
}
|
||||
|
||||
if (qctx->fresp != NULL && !qctx->client->nodetach) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue