From ade6cdf477448ef44a4e1026dea1b6af1d19d80a Mon Sep 17 00:00:00 2001 From: Alessio Podda Date: Mon, 4 May 2026 10:20:28 +0200 Subject: [PATCH] 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. --- lib/ns/query.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ns/query.c b/lib/ns/query.c index ca76df4f3d..55a93c52bf 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) {