mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 18:28:25 +00:00
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:
@@ -62,7 +62,7 @@ void build_server_array(void)
|
|||||||
/* servers need the location in the array to find all the whole
|
/* servers need the location in the array to find all the whole
|
||||||
set of equivalent servers from a pointer to a single one. */
|
set of equivalent servers from a pointer to a single one. */
|
||||||
for (count = 0; count < daemon->serverarraysz; count++)
|
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;
|
daemon->serverarray[count]->arrayposn = count;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user