]> granicus.if.org Git - pdns/commitdiff
Jose Arthur Benetasso Villanova discovered pdnssec did not do a proper database conne...
authorBert Hubert <bert.hubert@netherlabs.nl>
Wed, 16 Feb 2011 21:17:18 +0000 (21:17 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Wed, 16 Feb 2011 21:17:18 +0000 (21:17 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@2030 d19b8d6e-7fed-0310-83ef-9ca221ded41b

pdns/pdnssec.cc

index 1c4ae8e4dfe039f21c48850954f69300159ada91..36e1e7b8bb27a788855f389101ed122e082bdded 100644 (file)
@@ -11,6 +11,7 @@
 #include "packetcache.hh"
 #include "zoneparser-tng.hh"
 #include "signingpipe.hh"
+#include <boost/scoped_ptr.hpp>
 
 StatBag S;
 PacketCache PC;
@@ -138,7 +139,7 @@ void loadMainConfig(const std::string& configdir)
 
 void rectifyZone(DNSSECKeeper& dk, const std::string& zone)
 {
-  UeberBackend* B = new UeberBackend("default");
+  scoped_ptr<UeberBackend> B(new UeberBackend("default"));
   SOAData sd;
   
   if(!B->getSOA(zone, sd)) {