Commit a3171d63 authored by Jan Kadlec's avatar Jan Kadlec

Fixed wrong empty node condition.

parent c2c1c086
......@@ -37,7 +37,7 @@ static knot_rrset_t *create_nsec_rrset(const knot_node_t *,
static bool only_nsec_in_node(const knot_node_t *n)
{
assert(n);
return n->rrset_count >= 2 && (knot_node_rrset(n, KNOT_RRTYPE_NSEC)
return n->rrset_count <= 2 && (knot_node_rrset(n, KNOT_RRTYPE_NSEC)
&& knot_node_rrset(n, KNOT_RRTYPE_RRSIG));
}
......
Markdown is supported
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