]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
rec: Disable '$GENERATE' when loading trust anchors files 8492/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 31 Oct 2019 09:24:08 +0000 (10:24 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 31 Oct 2019 09:53:54 +0000 (10:53 +0100)
pdns/validate-recursor.cc

index 4392af6003f84778741c8b19fb357ac9daf601df..41adc3da483d1c321c557640a03df2e71df5884f 100644 (file)
@@ -34,6 +34,7 @@ bool updateTrustAnchorsFromFile(const std::string &fname, map<DNSName, dsmap_t>
   map<DNSName,dsmap_t> newDSAnchors;
   try {
     auto zp = ZoneParserTNG(fname);
+    zp.disableGenerate();
     DNSResourceRecord rr;
     DNSRecord dr;
     while(zp.get(rr)) {