diff --git a/usr.sbin/syslogd/syslogd.c b/usr.sbin/syslogd/syslogd.c index 92d1605c2a27..55a3572bb010 100644 --- a/usr.sbin/syslogd/syslogd.c +++ b/usr.sbin/syslogd/syslogd.c @@ -1487,7 +1487,8 @@ init(int signo) if (*p == '@') p = LocalHostName; for (i = 1; i < MAXHOSTNAMELEN - 1; i++) { - if (!isalnum(*p) && *p != '.' && *p != '-') + if (!isalnum(*p) && *p != '.' && *p != '-' + && *p != ',') break; host[i] = *p++; }