]> granicus.if.org Git - pdns/commitdiff
Merge pull request #7151 from aerique/rec41-sec-201810 rec-4.1.5
authoraerique <aerique@xs4all.nl>
Tue, 6 Nov 2018 14:15:01 +0000 (15:15 +0100)
committerGitHub <noreply@github.com>
Tue, 6 Nov 2018 14:15:01 +0000 (15:15 +0100)
PowerDNS Recursor 4.1.5

1  2 
pdns/pdns_recursor.cc
pdns/rec_channel_rec.cc
pdns/recursordist/test-syncres_cc.cc
pdns/syncres.cc

Simple merge
index 46a27e6a11b49b4729bf9e16d0cdbe9f4c810f8e,d9166a860068070ada8c60a0d07102944d510a8e..0ae865e7f1f2e6272914b37ba3a82619fa88e1bc
@@@ -537,12 -533,10 +537,12 @@@ string doAddTA(T begin, T end
    try {
      L<<Logger::Warning<<"Adding Trust Anchor for "<<who<<" with data '"<<what<<"', requested via control channel";
      g_luaconfs.modify([who, what](LuaConfigItems& lci) {
-       auto ds = unique_ptr<DSRecordContent>(dynamic_cast<DSRecordContent*>(DSRecordContent::make(what)));
+       auto ds=std::dynamic_pointer_cast<DSRecordContent>(DSRecordContent::make(what));
        lci.dsAnchors[who].insert(*ds);
        });
 +    broadcastAccFunction<uint64_t>(boost::bind(pleaseWipeCache, who, true));
      broadcastAccFunction<uint64_t>(boost::bind(pleaseWipePacketCache, who, true));
 +    broadcastAccFunction<uint64_t>(boost::bind(pleaseWipeAndCountNegCache, who, true));
      L<<Logger::Warning<<endl;
      return "Added Trust Anchor for " + who.toStringRootDot() + " with data " + what + "\n";
    }
Simple merge
diff --cc pdns/syncres.cc
Simple merge