]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[syslog] Strip invalid characters from hostname
authorMichael Brown <mcb30@ipxe.org>
Fri, 16 May 2014 12:45:52 +0000 (13:45 +0100)
committerMichael Brown <mcb30@ipxe.org>
Fri, 16 May 2014 12:45:52 +0000 (13:45 +0100)
commite5878ce65db229e495adf9492233daa78c2eb0b7
tree42a584f11196cc025524efcfaf691a3f3bd7011f
parent4e4fc678c27fc8020e8ebab3a2bcf6570a75155c
[syslog] Strip invalid characters from hostname

Avoid generating syntactically invalid log messages by ensuring that
invalid characters are not present in the hostname.  In particular,
ensure that any whitespace is stripped, since whitespace functions as
a field separator for syslog messages.

Reported-by: Alex Davies <adavies@jumptrading.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/net/udp/syslog.c