]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix bad logic in iovlist_truncate().
authorEd Schouten <ed@FreeBSD.org>
Mon, 18 Jun 2018 06:01:28 +0000 (06:01 +0000)
committerEd Schouten <ed@FreeBSD.org>
Mon, 18 Jun 2018 06:01:28 +0000 (06:01 +0000)
commit8803b8597ae6431d9e65e5c0fa847acc0006bb7a
tree3d745f19d1708fdf48753b2353122cc0059c4cce
parent8a3255c288a56ed45114f4fe75a1fa60b2aedc0f
Fix bad logic in iovlist_truncate().

To conform to RFC 5426, this function is intended to truncate messages
if they exceed the message size limits. Unfortunately, the amount of
space was computed the wrong way around, causing messages to be
truncated entirely.

Reported by: Michael Grimm on stable@
MFC after: 3 days
usr.sbin/syslogd/syslogd.c