opnsense-src/sys/netpfil
Kristof Provost 93c80b79ad pf: fix potential state key leak
If we fail to attach the new state keys in pf_state_key_attach() we are
expected to free both keys. Do so.
Note that in some scenarios both key are the same, so check for that
before freeing.

MFC after:	2 weeks
Sponsored by:	Rubicon Communications, LLC ("Netgate")
Differential Revision:	https://reviews.freebsd.org/D47495

(cherry picked from commit 371bd29d4b22257a7e92e1e711cca3d94cfbd00d)
2024-11-27 14:19:53 +01:00
..
ipfilter/netinet ipfilter: Avoid holding a lock while stopping 2024-11-19 02:32:59 +00:00
ipfw dummynet: fix pie 2024-09-22 07:46:37 -06:00
pf pf: fix potential state key leak 2024-11-27 14:19:53 +01:00