diff --git a/lib/dns/resolver.c b/lib/dns/resolver.c index 9957663c2d..9fcc1ea73c 100644 --- a/lib/dns/resolver.c +++ b/lib/dns/resolver.c @@ -3423,7 +3423,7 @@ fctx_getaddresses(fetchctx_t *fctx, bool badcache) { bool all_bad; dns_rdata_ns_t ns; bool need_alternate = false; - bool all_spilled = true; + bool all_spilled = false; unsigned int no_addresses = 0; unsigned int ns_processed = 0; @@ -3592,6 +3592,7 @@ normal_nses: } now = isc_stdtime_now(); + all_spilled = true; /* resets to false below after the first success */ INSIST(ISC_LIST_EMPTY(fctx->finds)); INSIST(ISC_LIST_EMPTY(fctx->altfinds));