]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
fixup! selection: try to resolve NS addr instead of choosing the same server
authorŠtěpán Balážik <stepan.balazik@nic.cz>
Thu, 10 Sep 2020 11:50:26 +0000 (13:50 +0200)
committerŠtěpán Balážik <stepan.balazik@nic.cz>
Thu, 15 Oct 2020 11:22:22 +0000 (13:22 +0200)
lib/selection.c

index 08abb01f79408d8535e280d6bcdc02b0bcfdc6ae..61673a3ee3b00c14b3cbf7e2bfb2b13ee655f6c4 100644 (file)
@@ -226,7 +226,7 @@ struct kr_transport *choose_transport(struct choice choices[],
 
 
        // Don't try the same server again when there are other choices to be explored
-       if (choices[choice].address_state->errors && unresolved_len) {
+       if (choices[choice].address_state->error_count && unresolved_len) {
                *transport = (struct kr_transport) {
                        .protocol = KR_TRANSPORT_NOADDR,
                        .name = unresolved[kr_rand_bytes(1) % unresolved_len]