]> granicus.if.org Git - pdns/commitdiff
With this commit, the root-anchor provisioning machinery no longer uses g_rootdnsname...
authorbert hubert <bert.hubert@netherlabs.nl>
Sun, 29 Oct 2017 15:23:21 +0000 (16:23 +0100)
committerbert hubert <bert.hubert@netherlabs.nl>
Sun, 29 Oct 2017 15:23:21 +0000 (16:23 +0100)
pdns/rec-lua-conf.cc

index da2d7491e7cb19d898eac258ea8dd9d5a7bed8b7..3353df34da1bb1305fbf02b4b22978af16912421 100644 (file)
@@ -33,9 +33,10 @@ GlobalStateHolder<LuaConfigItems> g_luaconfs;
 
 LuaConfigItems::LuaConfigItems()
 {
+  DNSName root("."); // don't use g_rootdnsname here, it might not exist yet
   for (const auto &dsRecord : rootDSs) {
     auto ds=unique_ptr<DSRecordContent>(dynamic_cast<DSRecordContent*>(DSRecordContent::make(dsRecord)));
-    dsAnchors[g_rootdnsname].insert(*ds);
+    dsAnchors[root].insert(*ds);
   }
 }