HomeFreeBSD

syslogd: Do not print bad data

Description

syslogd: Do not print bad data

If errno is zero, then buf is never filled and we're printing
uninitialized data. Print the msg buffer instead to mitigate this.

Reviewed by: markj, emaste
MFC after: 3 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D41371

Details

Provenance
jfreeAuthored on Sep 1 2023, 2:50 AM
markjCommitted on Sep 28 2023, 3:51 PM
Reviewer
markj
Differential Revision
D41371: syslogd: Do not print bad data
Parents
rGbbde787c6668: syslogd: Merge loops
Branches
Unknown
Tags
Unknown