From 1a3b69aa56d9e3637cdfe2f9d44b19fda7e6e7d8 Mon Sep 17 00:00:00 2001 From: Simon Kelley Date: Wed, 16 Jun 2021 09:57:41 +0100 Subject: [PATCH] Fix error in new domain-search code. SERV_USE_RESOLV set implies struct serv_local, so don't can't set ->arrayposn Thanks to Xingcong Li for the cod review which led to this. --- 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 febad99..53bb9b1 100644 --- a/src/domain-match.c +++ b/src/domain-match.c @@ -62,7 +62,7 @@ void build_server_array(void) /* servers need the location in the array to find all the whole set of equivalent servers from a pointer to a single one. */ for (count = 0; count < daemon->serverarraysz; count++) - if (!(daemon->serverarray[count]->flags & SERV_LITERAL_ADDRESS)) + if (!(daemon->serverarray[count]->flags & (SERV_LITERAL_ADDRESS | SERV_USE_RESOLV))) daemon->serverarray[count]->arrayposn = count; }