From d8a2f9943aa6cdedea4158e4af21f8577999b732 Mon Sep 17 00:00:00 2001 From: Kees Monshouwer Date: Mon, 24 Aug 2020 11:12:01 +0200 Subject: [PATCH] auth: clear the key cache after addKey() --- pdns/dbdnsseckeeper.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() { -- 2.47.2