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

(cherry picked from commit f415a5c1bd56933367e42312731e4ec553e256ed)

Details

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