Fix logic in add_update_server() to make optimisation actually optimise.

This commit is contained in:
Simon Kelley
2021-10-06 23:01:14 +01:00
parent 33d6a01cd3
commit efea282396

View File

@@ -630,7 +630,7 @@ int add_update_server(int flags,
/* See if there is a suitable candidate, and unmark
only do this for forwarding servers, not
address or local, to avoid delays on large numbers. */
if (flags & SERV_IS_LOCAL)
if (!(flags & SERV_IS_LOCAL))
for (serv = daemon->servers; serv; serv = serv->next)
if ((serv->flags & SERV_MARK) &&
hostname_isequal(alloc_domain, serv->domain))