From b5788c3649bee0d5c86c6900ee3dd2530a494bd1 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Tue, 12 Nov 2019 17:00:44 +0100 Subject: [PATCH] If modeSetAt is zero, we never updated the entry and it can go. --- pdns/syncres.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/syncres.hh b/pdns/syncres.hh index c400434421..e420fba03e 100644 --- a/pdns/syncres.hh +++ b/pdns/syncres.hh @@ -516,7 +516,7 @@ public: static void pruneEDNSStatuses(time_t cutoff) { for (auto it = t_sstorage.ednsstatus.begin(); it != t_sstorage.ednsstatus.end(); ) { - if (it->second.modeSetAt && it->second.modeSetAt <= cutoff) { + if (it->second.modeSetAt <= cutoff) { it = t_sstorage.ednsstatus.erase(it); } else { ++it; -- 2.39.2