]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
lib/resolve: zonecut fetching error was fixed
authorGrigorii Demidov <grigorii.demidov@nic.cz>
Thu, 16 Feb 2017 12:23:41 +0000 (13:23 +0100)
committerGrigorii Demidov <grigorii.demidov@nic.cz>
Thu, 16 Feb 2017 12:23:41 +0000 (13:23 +0100)
lib/resolve.c

index 5666758c76478c9970815991725b8af212633d27..559f27b00cfe34ba047c411de604033a7ba4b13d 100644 (file)
@@ -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