From 252fc0fd99ae59b6c73d78dff783eb10f97b8241 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Thu, 25 Jan 2018 18:48:24 +0100 Subject: [PATCH] cache: skip NSEC stype, instead of failing assertion --- lib/cache.c | 4 ++++ 1 file changed, 4 insertions(+) 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); -- 2.47.3