Detect duplicate RRSIGs as well.

This commit is contained in:
David Blacka 2017-01-06 12:53:57 -05:00
parent c5896495c7
commit 444601fb2a

View File

@ -136,7 +136,8 @@ public class ZoneVerifier
return true; return true;
} }
for (Iterator i = rrset.rrs(); i.hasNext(); ) Iterator i = (rr instanceof RRSIGRecord) ? rrset.sigs() : rrset.rrs();
for ( ; i.hasNext(); )
{ {
Record record = (Record) i.next(); Record record = (Record) i.next();
if (rr.equals(record)) return false; if (rr.equals(record)) return false;