]> 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>
Wed, 26 Aug 2020 11:01:12 +0000 (13:01 +0200)
If we hit maxdepth, we still want to have some room to do the doResolveNoQNameMinimization call.

(cherry picked from commit cec49628a07e03d337aa5cf51fd925bbe31291bb)

pdns/syncres.cc

index 11bccecb3971e17c715768ee51b99371ed0913c2..97a813ece76909de0a6a9ea12404cb41e556150c 100644 (file)
@@ -739,7 +739,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++;