From: Kees Monshouwer Date: Mon, 24 Aug 2020 09:12:01 +0000 (+0200) Subject: auth: clear the key cache after addKey() X-Git-Tag: rec-4.4.0-beta1~11^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F9409%2Fhead;p=thirdparty%2Fpdns.git auth: clear the key cache after addKey() --- diff --git a/pdns/dbdnsseckeeper.cc b/pdns/dbdnsseckeeper.cc index a065603c17..60d9979afd 100644 --- a/pdns/dbdnsseckeeper.cc +++ b/pdns/dbdnsseckeeper.cc @@ -108,7 +108,7 @@ bool DNSSECKeeper::addKey(const DNSName& name, bool setSEPBit, int algorithm, in dspk.setKey(dpk); dspk.d_algorithm = algorithm; dspk.d_flags = setSEPBit ? 257 : 256; - return addKey(name, dspk, id, active, published); + return addKey(name, dspk, id, active, published) && clearKeyCache(name); } void DNSSECKeeper::clearAllCaches() {