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
This commit is contained in:
David Blacka 2006-09-19 19:17:52 +00:00
parent 78a5c09105
commit ddd612231a
1 changed files with 2 additions and 2 deletions

View File

@ -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);