]> granicus.if.org Git - pdns/commitdiff
crash fix for bind backend
authorBert Hubert <bert.hubert@netherlabs.nl>
Thu, 29 Mar 2007 09:05:35 +0000 (09:05 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Thu, 29 Mar 2007 09:05:35 +0000 (09:05 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@1002 d19b8d6e-7fed-0310-83ef-9ca221ded41b

pdns/backends/bind/bindbackend2.cc

index e952bfbc4a3c7cf15701be4221947b8784f8064a..05bcba94874fa0ebb5d43207aa5b2e3074979269 100644 (file)
@@ -499,8 +499,6 @@ void Bind2Backend::loadConfig(string* status)
       
     vector<BindDomainInfo> domains=BP.getDomains();
     
-    us=this;
-
     d_binddirectory=BP.getDirectory();
     //    ZP.setDirectory(d_binddirectory);
     //    ZoneParser::callback_t func=boost::bind(&InsertionCallback, staging, _1, _2, _3, _4, _5, _6);
@@ -667,9 +665,6 @@ void Bind2Backend::queueReload(BB2DomainInfo *bbd)
 
   try {
     nukeZoneRecords(bbd); // ? do we need this?
-    
-    us=this;
-
     staging->id_zone_map[bbd->d_id]=s_state->id_zone_map[bbd->d_id];
     staging->id_zone_map[bbd->d_id].d_records=shared_ptr<vector<Bind2DNSRecord> > (new vector<Bind2DNSRecord>);  // nuke it