]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
auth: clear the key cache after addKey() 9409/head
authorKees Monshouwer <mind04@monshouwer.org>
Mon, 24 Aug 2020 09:12:01 +0000 (11:12 +0200)
committermind04 <mind04@monshouwer.org>
Mon, 24 Aug 2020 09:12:01 +0000 (11:12 +0200)
pdns/dbdnsseckeeper.cc

index a065603c17b1b820f105999a99040545a937f68d..60d9979afde162deca0506b4aa06e3615dd7d10b 100644 (file)
@@ -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() {