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:
parent
78a5c09105
commit
ddd612231a
@ -92,12 +92,12 @@ public class RecordComparator implements Comparator
|
|||||||
if (a_type == Type.RRSIG)
|
if (a_type == Type.RRSIG)
|
||||||
{
|
{
|
||||||
a_type = ((RRSIGRecord) a).getTypeCovered();
|
a_type = ((RRSIGRecord) a).getTypeCovered();
|
||||||
sig_type = 1;
|
if (b_type != Type.RRSIG) sig_type = 1;
|
||||||
}
|
}
|
||||||
if (b_type == Type.RRSIG)
|
if (b_type == Type.RRSIG)
|
||||||
{
|
{
|
||||||
b_type = ((RRSIGRecord) b).getTypeCovered();
|
b_type = ((RRSIGRecord) b).getTypeCovered();
|
||||||
sig_type = -1;
|
if (a.getType() != Type.RRSIG) sig_type = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
res = compareTypes(a_type, b_type);
|
res = compareTypes(a_type, b_type);
|
||||||
|
Loading…
Reference in New Issue
Block a user