From efea28239689537e61e56c83de3b876900425b18 Mon Sep 17 00:00:00 2001 From: Simon Kelley Date: Wed, 6 Oct 2021 23:01:14 +0100 Subject: [PATCH] Fix logic in add_update_server() to make optimisation actually optimise. --- src/domain-match.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/domain-match.c b/src/domain-match.c index 7bf3d5a..6f59566 100644 --- a/src/domain-match.c +++ b/src/domain-match.c @@ -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))