0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-15 14:31:11 +01:00

ircd::net::dns::resolver: Prevent retry of ServFail to the same server.

This commit is contained in:
Jason Volk 2020-12-05 01:07:02 -08:00
parent 9e085c49c5
commit afe314a408

View file

@ -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
{