[Opendnssec-commits] [svn.opendnssec.org/svn/dnssec] r5988 - branches/OpenDNSSEC-1.3/auditor/lib/kasp_auditor

alexd at nominet.org.uk alexd at nominet.org.uk
Tue Jan 3 12:30:08 CET 2012


Author: alex
Date: 2012-01-03 12:30:08 +0100 (Tue, 03 Jan 2012)
New Revision: 5988

Modified:
   branches/OpenDNSSEC-1.3/auditor/lib/kasp_auditor/auditor.rb
Log:
Handle multiple subdomain chains through empty nonterminals

Modified: branches/OpenDNSSEC-1.3/auditor/lib/kasp_auditor/auditor.rb
===================================================================
--- branches/OpenDNSSEC-1.3/auditor/lib/kasp_auditor/auditor.rb	2012-01-03 11:28:02 UTC (rev 5987)
+++ branches/OpenDNSSEC-1.3/auditor/lib/kasp_auditor/auditor.rb	2012-01-03 11:30:08 UTC (rev 5988)
@@ -920,7 +920,10 @@
       if (!is_glue && empty_nonterminals.length > 0)
         # If so, add the appropriate NSEC3 record to the "expected NSEC3s" file
         empty_nonterminals.each {|empty_nonterminal|
-          add_domain_to_types_file(empty_nonterminal, iterations, salt, hash_alg, "")
+          # Should really check to see if file already includes this name
+          if !(File.open(@working + "#{File::SEPARATOR}audit.types.#{Process.pid}", "r").grep(/\w#{empty_nonterminal}/))
+            add_domain_to_types_file(empty_nonterminal, iterations, salt, hash_alg, "")
+          end
         }
       end
       add_domain_to_types_file(domain, iterations, salt, hash_alg, types_string)




More information about the Opendnssec-commits mailing list