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.
This commit is contained in:
Simon Kelley committed 2021-06-16 09:57:41 +01:00
1 parent 1c9f136b57
commit 1a3b69aa56
1 file changed
+1 -1
+1 -1
View File
@@ -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;
}