From: Kees Monshouwer Date: Thu, 7 Dec 2023 10:06:20 +0000 (+0100) Subject: auth: fix cname wildcard and other records X-Git-Tag: auth-4.9.0-alpha1~32^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6bd759d1c7549bd1bd26ab71d406dec212496b16;p=thirdparty%2Fpdns.git auth: fix cname wildcard and other records --- diff --git a/pdns/packethandler.cc b/pdns/packethandler.cc index ff1f5bcb96..30c9580668 100644 --- a/pdns/packethandler.cc +++ b/pdns/packethandler.cc @@ -1299,9 +1299,10 @@ bool PacketHandler::tryWildcard(DNSPacket& p, std::unique_ptr& r, DNS nodata=true; } else { + bestmatch = target; for(auto& rr: rrset) { rr.wildcardname = rr.dr.d_name; - rr.dr.d_name=bestmatch=target; + rr.dr.d_name = bestmatch; if(rr.dr.d_type == QType::CNAME) { retargeted=true;