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

Alex Dalitz alexd at nominet.org.uk
Fri Aug 13 11:24:58 CEST 2010


Author: alex
Date: 2010-08-13 11:24:58 +0200 (Fri, 13 Aug 2010)
New Revision: 3755

Modified:
   trunk/OpenDNSSEC/auditor/lib/kasp_auditor/auditor.rb
Log:
Fixing nasty hack

Modified: trunk/OpenDNSSEC/auditor/lib/kasp_auditor/auditor.rb
===================================================================
--- trunk/OpenDNSSEC/auditor/lib/kasp_auditor/auditor.rb	2010-08-13 09:22:23 UTC (rev 3754)
+++ trunk/OpenDNSSEC/auditor/lib/kasp_auditor/auditor.rb	2010-08-13 09:24:58 UTC (rev 3755)
@@ -319,11 +319,7 @@
         # glue - don't verify
         return
       end
-      begin
-        return if (out_of_zone(rrset.name))
-      rescue Exception # Invalid RRSet name (probably signer error)
-        return
-      end
+      return if (out_of_zone(rrset.name))
       rrset_sig_types = []
       rrset.sigs.each {|sig| rrset_sig_types.push(sig.algorithm)}
       @algs.each {|alg|
@@ -1088,6 +1084,7 @@
 
     # Check if the name is out of the zone
     def out_of_zone(name)
+      return true if !name
       return !((name.subdomain_of?@soa.name) || (name == @soa.name))
     end
 




More information about the Opendnssec-commits mailing list