Commit 2c39960a authored by Daniel Salzman's avatar Daniel Salzman

updates: replace assert with proper check

parent 133d9c1b
Pipeline #428 canceled with stage
......@@ -300,7 +300,10 @@ static int apply_replace_soa(apply_ctx_t *ctx, zone_contents_t *contents, change
return ret;
}
assert(!node_rrtype_exists(contents->apex, KNOT_RRTYPE_SOA));
// Check for SOA with proper serial but different rdata.
if (node_rrtype_exists(contents->apex, KNOT_RRTYPE_SOA)) {
return KNOT_EINVAL;
}
return add_rr(ctx, contents, contents->apex, chset->soa_to, chset);
}
......
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