]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Allow some more depth headroom for the no-qname-minimization fallback case.
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 10 Aug 2020 10:57:11 +0000 (12:57 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 10 Aug 2020 10:57:11 +0000 (12:57 +0200)
If we hit maxdepth, we still want to have some room to do the doResolveNoQNameMinimization call.

pdns/syncres.cc

index bd037f056eb71c500a2db5c8a6d861db08162923..7216434727c93e5ced0ae0e8e005faf8bd512a94 100644 (file)
@@ -744,7 +744,7 @@ int SyncRes::doResolve(const DNSName &qname, const QType &qtype, vector<DNSRecor
         // Case 5: unexpected answer
         QLOG("Step5: other rcode, last effort final resolve");
         setQNameMinimization(false);
-        res = doResolveNoQNameMinimization(qname, qtype, ret, depth, beenthere, state);
+        res = doResolveNoQNameMinimization(qname, qtype, ret, depth/2, beenthere, state);
 
         if(res == RCode::NoError) {
           s_qnameminfallbacksuccess++;