From: Otto Moerbeek Date: Tue, 12 Nov 2019 16:00:44 +0000 (+0100) Subject: If modeSetAt is zero, we never updated the entry and it can go. X-Git-Tag: dnsdist-1.4.0^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b5788c3649bee0d5c86c6900ee3dd2530a494bd1;p=thirdparty%2Fpdns.git If modeSetAt is zero, we never updated the entry and it can go. --- 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;