]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Fix DNS64 owner case after DNAME restart
authorAlessio Podda <alessio@isc.org>
Mon, 4 May 2026 08:20:28 +0000 (10:20 +0200)
committerColin Vidal (GitLab job 7532230) <colin@isc.org>
Tue, 2 Jun 2026 14:17:16 +0000 (14:17 +0000)
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

index ca76df4f3d542b56c8389743afb41d676745d2fa..55a93c52bf965f77d9f05c0509c4ff6aed69d696 100644 (file)
@@ -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) {