From: Otto Moerbeek Date: Fri, 17 Jun 2022 11:46:31 +0000 (+0200) Subject: Only erase if we know the edns entry exists X-Git-Tag: auth-4.8.0-alpha0~53^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=21c4f82b8e68a95e41c70f247efe993b48f2cb7d;p=thirdparty%2Fpdns.git Only erase if we know the edns entry exists --- diff --git a/pdns/syncres.cc b/pdns/syncres.cc index 15fbbed165..3745042add 100644 --- a/pdns/syncres.cc +++ b/pdns/syncres.cc @@ -1567,7 +1567,10 @@ LWResult::Result SyncRes::asyncresolveWrapper(const ComboAddress& ip, bool ednsM lock->setMode(ind, ednsstatus, EDNSStatus::EDNSIGNORANT, d_now.tv_sec); } else { - lock->erase(ip); + // New status is EDNSOK + if (ednsstatus != lock->end()) { + lock->erase(ip); + } } }