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.

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

(cherry picked from commit f415a5c1bd56933367e42312731e4ec553e256ed)
(cherry picked from commit 1bd8fa1dd0ba562c6b60fe1a316cfcca637d14d6)

Details

Provenance
kpAuthored on Sep 8 2023, 9:21 AM
Differential Revision
D41779: pfsync: fix state leak
Parents
rGffaa91929f2d: qat: Intel 4xxx Series driver API extension
Branches
Unknown
Tags
Unknown