]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
lib/resolve: fixed qry flags clearing on NS switch
authorMarek Vavruša <marek.vavrusa@nic.cz>
Wed, 22 Jul 2015 08:39:25 +0000 (10:39 +0200)
committerMarek Vavruša <marek.vavrusa@nic.cz>
Wed, 22 Jul 2015 08:39:25 +0000 (10:39 +0200)
lib/resolve.c

index 2a30c1b8d89f9dade1e425a09d98196f16f0b02a..0e8af332a75b82d113e0606f31b8d1a765e88318 100644 (file)
@@ -512,7 +512,7 @@ ns_election:
        /* Resolve address records */
        if (qry->ns.addr.ip.sa_family == AF_UNSPEC) {
                if (ns_resolve_addr(qry, request) != 0) {
-                       qry->flags &= ~(QUERY_AWAIT_IPV6|QUERY_AWAIT_IPV4);
+                       qry->flags &= ~(QUERY_AWAIT_IPV6|QUERY_AWAIT_IPV4|QUERY_TCP);
                        goto ns_election; /* Must try different NS */
                }
                ITERATE_LAYERS(request, knot_layer_reset);