]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2836] Remove deprecated hack
authorMichal 'vorner' Vaner <michal.vaner@nic.cz>
Thu, 16 May 2013 14:15:36 +0000 (16:15 +0200)
committerMichal 'vorner' Vaner <michal.vaner@nic.cz>
Thu, 16 May 2013 14:15:36 +0000 (16:15 +0200)
The create now throws on relocation, so the whole operation is tried
again. No need to worry about object being relocated.

src/lib/datasrc/memory/zone_data_updater.cc

index 734d40e1b601c43c9fdafff304c88adbb37fd0ff..a8a88e6642211beaffdd4fe363ef8d0a0a9d7058 100644 (file)
@@ -234,12 +234,6 @@ ZoneDataUpdater::setupNSEC3(const ConstRRsetPtr rrset) {
     NSEC3Data* nsec3_data = zone_data_->getNSEC3Data();
     if (nsec3_data == NULL) {
         nsec3_data = NSEC3Data::create(mem_sgmt_, zone_name_, nsec3_rdata);
-        // The create above might have relocated data. So get it again,
-        // just to make sure.
-        zone_data_ =
-            static_cast<ZoneData*>(mem_sgmt_.
-                                   getNamedAddress("updater_zone_data").
-                                   second);
         zone_data_->setNSEC3Data(nsec3_data);
         zone_data_->setSigned(true);
     } else {