From: Tomas Krizek Date: Tue, 25 May 2021 10:40:01 +0000 (+0200) Subject: lib/dnssec/ta.c: replace asserts X-Git-Tag: v5.4.0~18^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d0ad05df46996f0a74fc1602473f27ebb4f8e2e3;p=thirdparty%2Fknot-resolver.git lib/dnssec/ta.c: replace asserts --- diff --git a/lib/dnssec/ta.c b/lib/dnssec/ta.c index 60b84449f..9d8ffee72 100644 --- a/lib/dnssec/ta.c +++ b/lib/dnssec/ta.c @@ -24,7 +24,7 @@ knot_rrset_t *kr_ta_get(map_t *trust_anchors, const knot_dname_t *name) const knot_dname_t * kr_ta_closest(const struct kr_context *ctx, const knot_dname_t *name, const uint16_t type) { - assert(ctx && name); + kr_require(ctx && name); if (type == KNOT_RRTYPE_DS && name[0] != '\0') { /* DS is parent-side record, so the parent name needs to be covered. */ name = knot_wire_next_label(name, NULL);