]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
If modeSetAt is zero, we never updated the entry and it can go.
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 12 Nov 2019 16:00:44 +0000 (17:00 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 12 Nov 2019 16:00:44 +0000 (17:00 +0100)
pdns/syncres.hh

index c400434421900870662e3dce8a0d104f08f860c8..e420fba03ebc80e0fe588ca57b7f347fe4ea877b 100644 (file)
@@ -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;