]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
lib/dnssec/ta.c: replace asserts
authorTomas Krizek <tomas.krizek@nic.cz>
Tue, 25 May 2021 10:40:01 +0000 (12:40 +0200)
committerTomas Krizek <tomas.krizek@nic.cz>
Tue, 25 May 2021 12:39:45 +0000 (14:39 +0200)
lib/dnssec/ta.c

index 60b84449f067e84c7a1529c7e20d83c5ab6896bf..9d8ffee72c977568a2af0e53ae149a12e068d0a1 100644 (file)
@@ -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);