From ca443a348e4ccca3915b9cf05e26e2a391183df7 Mon Sep 17 00:00:00 2001 From: Bert Hubert Date: Mon, 15 Mar 2010 21:12:50 +0000 Subject: [PATCH] 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 --- pdns/packethandler.cc | 2 +- regression-tests/cname-but-no-correct-type/expected_result | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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"<