Do not try to measure length of NULL pointer. This avoids a crash for empty domains in server=//... configurations.

This commit is contained in:
Dominik DL6ER authored and Simon Kelley committed 2020-01-20 21:20:59 +00:00
1 parent ab53883c94
commit e40d8bef3b
1 file changed
+1 -1
+1 -1
View File
@@ -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;