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

Alex Dalitz alexd at nominet.org.uk
Wed Oct 13 09:58:34 CEST 2010


Author: alex
Date: 2010-10-13 09:58:34 +0200 (Wed, 13 Oct 2010)
New Revision: 4090

Modified:
   trunk/OpenDNSSEC/auditor/lib/kasp_auditor/auditor.rb
Log:
Fixing glue issues (pivotal 5628069)

Modified: trunk/OpenDNSSEC/auditor/lib/kasp_auditor/auditor.rb
===================================================================
--- trunk/OpenDNSSEC/auditor/lib/kasp_auditor/auditor.rb	2010-10-12 14:00:04 UTC (rev 4089)
+++ trunk/OpenDNSSEC/auditor/lib/kasp_auditor/auditor.rb	2010-10-13 07:58:34 UTC (rev 4090)
@@ -738,7 +738,7 @@
             # iff we're using NSEC3
             write_types_to_file(current_domain, types_covered, last_rr.name, is_glue)
           end
-          if !(l_rr.name.subdomain_of?current_domain)
+          if !(test_subdomain(current_domain, subdomain))
             delegation = false
             is_glue = false
           else
@@ -978,7 +978,10 @@
     # but false for ("z.a.b.c", "a.b.c", "c")
     def test_subdomain(rr, subdomain)
       ret = false
-      rr_name = rr.name
+      rr_name = rr
+      if (rr.class != Dnsruby::Name)
+        rr_name = rr.name
+      end
       rr_name = lose_n_labels(rr_name, @soa.name.labels.length)
 
       if (subdomain && rr_name)




More information about the Opendnssec-commits mailing list