]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Fix ANY under DLOG 2922/head
authorChristian Hofstaedtler <christian@hofstaedtler.name>
Mon, 23 Nov 2015 11:46:21 +0000 (12:46 +0100)
committerChristian Hofstaedtler <christian@hofstaedtler.name>
Mon, 23 Nov 2015 11:46:21 +0000 (12:46 +0100)
Previously, unit tests would produce:

After first ANY query for 'aland.test.com.', id=10: weDone=1, weHaveUnauth=0, weRedirected=0, haveAlias='Exception building answer packet (Attempt to print an unset dnsname) sending out servfail

pdns/packethandler.cc

index de2d85341cd0a1263987b1d85f74dd603e166851..7dd2d9a6e391514f445cce9a779755bd64f8183f 100644 (file)
@@ -1375,7 +1375,7 @@ DNSPacket *PacketHandler::questionOrRecurse(DNSPacket *p, bool *shouldRecurse)
     }
 
 
-    DLOG(L<<"After first ANY query for '"<<target<<"', id="<<sd.domain_id<<": weDone="<<weDone<<", weHaveUnauth="<<weHaveUnauth<<", weRedirected="<<weRedirected<<", haveAlias='"<<haveAlias<<"'"<<endl);
+    DLOG(L<<"After first ANY query for '"<<target<<"', id="<<sd.domain_id<<": weDone="<<weDone<<", weHaveUnauth="<<weHaveUnauth<<", weRedirected="<<weRedirected<<", haveAlias='"<<(haveAlias.empty() ? "(none)" : haveAlias.toString())<<"'"<<endl);
     if(p->qtype.getCode() == QType::DS && weHaveUnauth &&  !weDone && !weRedirected && d_dk.isSecuredZone(sd.qname)) {
       DLOG(L<<"Q for DS of a name for which we do have NS, but for which we don't have on a zone with DNSSEC need to provide an AUTH answer that proves we don't"<<endl);
       makeNOError(p, r, target, DNSName(), sd, 1);