From afe314a408648f8171fde984eeb1fef7a06472c0 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Sat, 5 Dec 2020 01:07:02 -0800 Subject: [PATCH] ircd::net::dns::resolver: Prevent retry of ServFail to the same server. --- ircd/net_dns_resolver.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ircd/net_dns_resolver.cc b/ircd/net_dns_resolver.cc index 13192180c..f0f81a751 100644 --- a/ircd/net_dns_resolver.cc +++ b/ircd/net_dns_resolver.cc @@ -682,7 +682,7 @@ ircd::net::dns::resolver::handle_reply(const ipport &from, // Handle ServFail as a special case here. We can try again without // handling this tag or propagating this error any further yet. - if(header.rcode == 2 && tag.tries < size_t(retry_max)) + if(header.rcode == 2 && tag.tries < size_t(server.size())) { log::error {