From: Štěpán Balážik Date: Mon, 12 Oct 2020 09:23:18 +0000 (+0200) Subject: fixup! selection_iter: treat resolving A and AAAA records for NS names equally X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0073e60924181ae2ec20579e9f8933f9f78bc505;p=thirdparty%2Fknot-resolver.git fixup! selection_iter: treat resolving A and AAAA records for NS names equally --- diff --git a/lib/selection_iter.c b/lib/selection_iter.c index 65f2416ca..df3639594 100644 --- a/lib/selection_iter.c +++ b/lib/selection_iter.c @@ -218,7 +218,7 @@ void iter_choose_transport(struct kr_query *qry, struct kr_transport **transport if (*transport) { KR_DNAME_GET_STR(ns_name, (*transport)->name); const char *ns_str = kr_straddr(&(*transport)->address.ip); - if ((*transport)->protocol) { + if ((*transport)->protocol != KR_TRANSPORT_RESOLVE_A && (*transport)->protocol != KR_TRANSPORT_RESOLVE_AAAA) { VERBOSE_MSG(qry, "=> id: '%05u' choosing: '%s'@'%s' with timeout %u ms zone cut: '%s'\n", qry->id, ns_name, ns_str ? ns_str : "", (*transport)->timeout, zonecut_str);