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.
This commit is contained in:
Alessio Podda 2026-05-04 10:20:28 +02:00 committed by Colin Vidal (GitLab job 7532230)
parent 4997d4ae6f
commit ade6cdf477

View 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) {