From: Štěpán Balážik Date: Mon, 12 Oct 2020 08:31:15 +0000 (+0200) Subject: fixup! selection_iter: treat resolving A and AAAA records for NS names equally X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9af3361a72d60abd84e5549a263ede36ca528e9;p=thirdparty%2Fknot-resolver.git fixup! selection_iter: treat resolving A and AAAA records for NS names equally --- diff --git a/lib/selection_iter.c b/lib/selection_iter.c index 860f80b3e..65f2416ca 100644 --- a/lib/selection_iter.c +++ b/lib/selection_iter.c @@ -105,6 +105,10 @@ void iter_update_state_from_zonecut(struct iter_local_state *local_state, struct } struct iter_name_state *name_state = *(struct iter_name_state **)val; + // Set addresses as unresolved as they might have fallen out of cache (TTL expired) + name_state->a_resolved = false; + name_state->aaaa_resolved = false; + if (addresses->len == 0) { // Name with no address name_state->generation = current_generation;