mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 18:28:25 +00:00
Do not try to measure length of NULL pointer. This avoids a crash for empty domains in server=//... configurations.
This commit is contained in:
committed by
Simon Kelley
parent
ab53883c94
commit
e40d8bef3b
@@ -1531,7 +1531,7 @@ void check_servers(void)
|
||||
#endif
|
||||
if (!(serv->flags & SERV_HAS_DOMAIN))
|
||||
s1 = _("unqualified"), s2 = _("names");
|
||||
else if (strlen(serv->domain) == 0)
|
||||
else if (serv->domain == NULL || strlen(serv->domain) == 0)
|
||||
s1 = _("default"), s2 = "";
|
||||
else
|
||||
s1 = _("domain"), s2 = serv->domain;
|
||||
|
||||
Reference in New Issue
Block a user