mirror of
http://thekelleys.org.uk/git/dnsmasq.git
synced 2026-10-14 10:29:33 +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:
1 parent
ab53883c94
commit
e40d8bef3b
1 file changed
+1
-1
+1
-1
@@ -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