From b9af3361a72d60abd84e5549a263ede36ca528e9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C5=A0t=C4=9Bp=C3=A1n=20Bal=C3=A1=C5=BEik?= Date: Mon, 12 Oct 2020 10:31:15 +0200 Subject: [PATCH] fixup! selection_iter: treat resolving A and AAAA records for NS names equally --- lib/selection_iter.c | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.47.2