HomeFreeBSD

Fix bad logic in iovlist_truncate().

Description

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

Details

Provenance
edAuthored on
Parents
rS335313: libcapsicum: adding missing man page links
Branches
Unknown
Tags
Unknown