From 5ad65890e9e050b0e506aeacd700b623241105fd Mon Sep 17 00:00:00 2001 From: Grigorii Demidov Date: Thu, 16 Feb 2017 13:23:41 +0100 Subject: [PATCH] lib/resolve: zonecut fetching error was fixed --- lib/resolve.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/resolve.c b/lib/resolve.c index 5666758c7..559f27b00 100644 --- a/lib/resolve.c +++ b/lib/resolve.c @@ -186,6 +186,7 @@ static int ns_fetch_cut(struct kr_query *qry, const knot_dname_t *requested_name /* It can occur that here parent query already have * provably insecured zonecut which not in the cache yet. */ const bool is_insecured = ((qry->parent != NULL) && + (qry->parent->flags & (QUERY_AWAIT_IPV4 | QUERY_AWAIT_IPV6)) == 0 && (qry->parent->flags & QUERY_DNSSEC_INSECURE) != 0); /* Want DNSSEC if it's possible to secure this name -- 2.47.3