Fix issue in jdnssec-verifyzone (and ZoneVerifier) where junk in the zone wouldn't be handled correctly (that is, ignored.)
This commit is contained in:
parent
9fad4941a6
commit
15cb5e2ab7
@ -276,6 +276,11 @@ public class ZoneVerifier
|
|||||||
// All RRs at the zone apex are normal
|
// All RRs at the zone apex are normal
|
||||||
if (n.equals(mZoneName)) return NodeType.NORMAL;
|
if (n.equals(mZoneName)) return NodeType.NORMAL;
|
||||||
|
|
||||||
|
// If the node is not below the zone itself, we will treat it as glue (it is really junk).
|
||||||
|
if (!n.subdomain(mZoneName))
|
||||||
|
{
|
||||||
|
return NodeType.GLUE;
|
||||||
|
}
|
||||||
// If the node is below a zone cut (either a delegation or DNAME), it is
|
// If the node is below a zone cut (either a delegation or DNAME), it is
|
||||||
// glue.
|
// glue.
|
||||||
if (last_cut != null && n.subdomain(last_cut) && !n.equals(last_cut))
|
if (last_cut != null && n.subdomain(last_cut) && !n.equals(last_cut))
|
||||||
|
Loading…
Reference in New Issue
Block a user