Skip to content
Snippets Groups Projects
Commit fe1bf738 authored by Jan Včelák's avatar Jan Včelák :rocket:
Browse files

DDNS: fix condition to check if RR belongs into a zone

parent ce5a6fe9
No related branches found
No related tags found
No related merge requests found
......@@ -189,7 +189,8 @@ static int process_prereq(const knot_rrset_t *rrset, uint16_t qclass,
return KNOT_EMALF;
}
if (!knot_dname_is_sub(rrset->owner, update->zone->apex->owner)) {
if (!knot_dname_is_equal(rrset->owner, update->zone->apex->owner) &&
!knot_dname_is_sub(rrset->owner, update->zone->apex->owner)) {
*rcode = KNOT_RCODE_NOTZONE;
return KNOT_EOUTOFZONE;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment