Skip to content
Snippets Groups Projects
Commit df8bf5f2 authored by Jan Kadlec's avatar Jan Kadlec
Browse files

DNSSEC: fixed wrong condition for signing.

Refs #4
parent 45eb5465
Branches
Tags
No related merge requests found
......@@ -458,11 +458,12 @@ static bool rr_should_be_signed(const knot_node_t *node,
return false;
}
// We only want to sign NSEC and DS at delegation points
if (knot_node_is_deleg_point(node) &&
(rrset->type != KNOT_RRTYPE_NSEC ||
rrset->type != KNOT_RRTYPE_DS)) {
return false;
// We only want to sign NSECs and DSs when at delegation points
if (knot_node_is_deleg_point(node)) {
if (!(rrset->type == KNOT_RRTYPE_NSEC ||
rrset->type == KNOT_RRTYPE_DS)) {
return false;
}
}
// These RRs have their signatures stored in changeset already
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment