diff --git a/bin/tests/system/qmin/ns5/named.conf.in b/bin/tests/system/qmin/ns5/named.conf.in index fb3101279a..f2382e5a8e 100644 --- a/bin/tests/system/qmin/ns5/named.conf.in +++ b/bin/tests/system/qmin/ns5/named.conf.in @@ -27,6 +27,7 @@ options { resolver-query-timeout 30000; # 30 seconds dnssec-validation no; disable-empty-zone 10.in-addr.arpa; + fetches-per-zone 40; }; key rndc_key { diff --git a/lib/dns/resolver.c b/lib/dns/resolver.c index 78e0634aab..dd944f8670 100644 --- a/lib/dns/resolver.c +++ b/lib/dns/resolver.c @@ -1487,7 +1487,7 @@ fcount_incr(fetchctx_t *fctx, bool force) { INSIST(spill > 0); LOCK(&counter->lock); - if (!force && ++counter->count > spill) { + if (++counter->count > spill && !force) { counter->count--; INSIST(counter->count > 0); counter->dropped++;