diff --git a/lib/dns/resolver.c b/lib/dns/resolver.c index f8f53d2650..98137a514d 100644 --- a/lib/dns/resolver.c +++ b/lib/dns/resolver.c @@ -3575,7 +3575,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; @@ -3735,6 +3735,7 @@ normal_nses: } isc_stdtime_get(&now); + all_spilled = true; /* resets to false below after the first success */ INSIST(ISC_LIST_EMPTY(fctx->finds)); INSIST(ISC_LIST_EMPTY(fctx->altfinds));