[Opendnssec-commits] [keihatsu.kirei.se/svn/dnssec] r4050 - trunk/OpenDNSSEC/auditor/lib/kasp_auditor

Alex Dalitz alexd at nominet.org.uk
Tue Oct 5 11:59:29 CEST 2010


Author: alex
Date: 2010-10-05 11:59:28 +0200 (Tue, 05 Oct 2010)
New Revision: 4050

Modified:
   trunk/OpenDNSSEC/auditor/lib/kasp_auditor/auditor.rb
Log:
Only add empty non-terminals once (pivotal 5481487)

Modified: trunk/OpenDNSSEC/auditor/lib/kasp_auditor/auditor.rb
===================================================================
--- trunk/OpenDNSSEC/auditor/lib/kasp_auditor/auditor.rb	2010-10-05 09:46:31 UTC (rev 4049)
+++ trunk/OpenDNSSEC/auditor/lib/kasp_auditor/auditor.rb	2010-10-05 09:59:28 UTC (rev 4050)
@@ -75,6 +75,7 @@
       @key_tracker = nil
       @key_cache = nil
       @unknown_nsecs = {}
+      @empty_nonterminals = []
     end
     attr_reader :config
     def set_config(c) # :nodoc: all
@@ -899,7 +900,11 @@
       while (last.labels.length > name_to_check_against.labels.length + 1)
         # Add the empty nonterminal to the list
         last.labels = last.labels[1,last.labels.length]
-        empty_nonterminals.push(last.clone)
+        if (!@empty_nonterminals.include?last)
+          empty_nonterminals.push(last.clone)
+          @empty_nonterminals.push(last.clone)
+        end
+
       end
 
       # If so, should it be covered by an NSEC3 record?




More information about the Opendnssec-commits mailing list