From ddd612231aae7ec1a58353d3566c8ee172e9999a Mon Sep 17 00:00:00 2001 From: David Blacka Date: Tue, 19 Sep 2006 19:17:52 +0000 Subject: [PATCH] fix RRSIG order issue when dealing with mulitple RRSIGs with a given owner, class, and type git-svn-id: https://svn.verisignlabs.com/jdnssec/tools/trunk@104 4cbd57fe-54e5-0310-bd9a-f30fe5ea5e6e --- src/com/verisignlabs/dnssec/security/RecordComparator.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/verisignlabs/dnssec/security/RecordComparator.java b/src/com/verisignlabs/dnssec/security/RecordComparator.java index 10828ec..dcdf0ea 100644 --- a/src/com/verisignlabs/dnssec/security/RecordComparator.java +++ b/src/com/verisignlabs/dnssec/security/RecordComparator.java @@ -92,12 +92,12 @@ public class RecordComparator implements Comparator if (a_type == Type.RRSIG) { a_type = ((RRSIGRecord) a).getTypeCovered(); - sig_type = 1; + if (b_type != Type.RRSIG) sig_type = 1; } if (b_type == Type.RRSIG) { b_type = ((RRSIGRecord) b).getTypeCovered(); - sig_type = -1; + if (a.getType() != Type.RRSIG) sig_type = -1; } res = compareTypes(a_type, b_type);