From: Vladimír Čunát Date: Thu, 25 Jan 2018 17:48:24 +0000 (+0100) Subject: cache: skip NSEC stype, instead of failing assertion X-Git-Tag: v2.0.0~6^2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=252fc0fd99ae59b6c73d78dff783eb10f97b8241;p=thirdparty%2Fknot-resolver.git cache: skip NSEC stype, instead of failing assertion --- diff --git a/lib/cache.c b/lib/cache.c index f85b48ea8..d74579d03 100644 --- a/lib/cache.c +++ b/lib/cache.c @@ -332,6 +332,10 @@ static int cache_peek_real(kr_layer_t *ctx, knot_pkt_t *pkt) qry->flags.NO_CACHE = true; struct key k_storage, *k = &k_storage; + if (qry->stype == KNOT_RRTYPE_NSEC) { + VERBOSE_MSG(qry, "=> skipping stype NSEC\n"); + return ctx->state; + } if (!check_dname_for_lf(qry->sname)) { WITH_VERBOSE(qry) { auto_free char *sname_str = kr_dname_text(qry->sname);