From: Alessio Podda Date: Mon, 4 May 2026 08:20:28 +0000 (+0200) Subject: Fix DNS64 owner case after DNAME restart X-Git-Tag: v9.21.23~2^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ade6cdf477448ef44a4e1026dea1b6af1d19d80a;p=thirdparty%2Fbind9.git Fix DNS64 owner case after DNAME restart When DNS64 filters a partially excluded AAAA RRset after a DNAME restart, dns_message_findname() can return an existing message-owned owner name while qctx->fname is released on the NXRRSET path. Set owner case from the message-owned name used for attaching the filtered rdataset, avoiding a stale alias to the released temporary name. --- diff --git a/lib/ns/query.c b/lib/ns/query.c index ca76df4f3d5..55a93c52bf9 100644 --- a/lib/ns/query.c +++ b/lib/ns/query.c @@ -8269,7 +8269,7 @@ query_filter64(query_ctx_t *qctx) { } dns_rdatalist_tordataset(myrdatalist, myrdataset); - dns_rdataset_setownercase(myrdataset, name); + dns_rdataset_setownercase(myrdataset, mname); client->query.attributes |= NS_QUERYATTR_NOADDITIONAL; if (mname == name) { if (qctx->dbuf != NULL) {