Instead of getting a nasty error message from privsep
authorbluhm <bluhm@openbsd.org>
Fri, 22 Aug 2014 16:14:11 +0000 (16:14 +0000)
committerbluhm <bluhm@openbsd.org>
Fri, 22 Aug 2014 16:14:11 +0000 (16:14 +0000)
commit57d437ee6a40b2fd4e58c671d6d64310d4d62fc5
tree7d6fe00d70e8b286c5e907d17ef7ba32fb5b58d6
parent7a7bc5c351a6f630d6eaa77a88ebbae059ef636c
Instead of getting a nasty error message from privsep
"syslogd: priv_getaddrinfo: overflow attempt in hostname"
check the host and port length when parsing the config.
OK henning@
usr.sbin/syslogd/syslogd.c