HomeFreeBSD

syslogd: Fix issues reported by gcc

Description

syslogd: Fix issues reported by gcc

  • When forwaring a message, don't assume that f->f_num_addr_fds > 0.
  • Avoid calling free() on a stack-allocated object.

Fixes: 4ecbee2760f7 ("syslogd: Open forwarding socket descriptors")
Fixes: f4b4a10abb26 ("syslogd: Move selector parsing into its own function")

Reviewed by: jfree
Differential Revision: https://reviews.freebsd.org/D47844

Details

Provenance
markjAuthored on Nov 29 2024, 7:43 PM
Reviewer
jfree
Differential Revision
D47844: syslogd: Fix issues reported by gcc
Parents
rGc296ac7e0f1c: vm: Optimize page rename
Branches
Unknown
Tags
Unknown