From: Bert Hubert Date: Mon, 15 Mar 2010 21:12:50 +0000 (+0000) Subject: close issue where asking for a AAAA for a record with a CNAME only to an A record... X-Git-Tag: rec-3.3~160 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ca443a348e4ccca3915b9cf05e26e2a391183df7;p=pdns close issue where asking for a AAAA for a record with a CNAME only to an A record would not return the actual CNAME, but a direct SOA git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@1542 d19b8d6e-7fed-0310-83ef-9ca221ded41b --- diff --git a/pdns/packethandler.cc b/pdns/packethandler.cc index 7543894c2..84b623e37 100644 --- a/pdns/packethandler.cc +++ b/pdns/packethandler.cc @@ -393,7 +393,7 @@ int PacketHandler::makeCanonic(DNSPacket *p, DNSPacket *r, string &target) r->addRecord(rr); } } - if(hits && !relevantNS && !found && !rfound && shortcut ) { // we found matching qnames but not a qtype + if(!numloops && hits && !relevantNS && !found && !rfound && shortcut ) { // we found matching qnames but not a qtype DLOG(L<<"Found matching qname, but not the qtype"<