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 {