Commit d2b4275b authored by Jan Včelák's avatar Jan Včelák 🚀

replace knot_dname_is_equal and _sub with _in

parent 5fbe7e86
......@@ -529,8 +529,7 @@ static bool journal_limit_exceeded(struct ixfr_proc *proc)
/*! \brief Checks whether RR belongs into zone. */
static bool out_of_zone(const knot_rrset_t *rr, struct ixfr_proc *proc)
{
return !knot_dname_is_sub(rr->owner, proc->zone->name) &&
!knot_dname_is_equal(rr->owner, proc->zone->name);
return !knot_dname_in(proc->zone->name, rr->owner);
}
/*!
......
......@@ -189,8 +189,7 @@ static int process_prereq(const knot_rrset_t *rrset, uint16_t qclass,
return KNOT_EMALF;
}
if (!knot_dname_is_equal(rrset->owner, update->zone->apex->owner) &&
!knot_dname_is_sub(rrset->owner, update->zone->apex->owner)) {
if (!knot_dname_in(update->zone->apex->owner, rrset->owner)) {
*rcode = KNOT_RCODE_NOTZONE;
return KNOT_EOUTOFZONE;
}
......
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