From: Grigorii Demidov Date: Thu, 16 Feb 2017 12:23:41 +0000 (+0100) Subject: lib/resolve: zonecut fetching error was fixed X-Git-Tag: v1.3.0~23^2~78^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ad65890e9e050b0e506aeacd700b623241105fd;p=thirdparty%2Fknot-resolver.git lib/resolve: zonecut fetching error was fixed --- 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