HomeFreeBSD

pfsync: fix state leak

Description

pfsync: fix state leak

If we receive a state with a route-to interface name set and we can't
find the interface we do not insert the state. However, in that case we
must still clean up the state (and state keys).
Do so, so we do not leak states.

Reviewed by: Kajetan Staszkiewicz <vegeta@tuxpowered.net>
MFC after: 3 days
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D41779

Details

Provenance
kpAuthored on Sep 8 2023, 9:21 AM
Differential Revision
D41779: pfsync: fix state leak
Parents
rGb2618b651b28: lib/libc/amd64/string/memchr.S: fix behaviour with overly long buffers
Branches
Unknown
Tags
Unknown