1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-28 08:02:54 +00:00
freebsd/sys/netpfil
Kristof Provost 0578fe4922 pf: rework pf_icmp_state_lookup() failure mode
If pf_icmp_state_lookup() finds a state but rejects it for not matching the
expected direction we should unlock the state (and NULL out *state). This
simplifies life for callers, and also ensures there's no confusion about what a
non-NULL returned state means.

Previously it could have been left in there by the caller, resulting in callers
unlocking the same state twice.

MFC after:	1 week
Sponsored by:	Rubicon Communications, LLC ("Netgate")
2024-09-01 17:05:29 +02:00
..
ipfilter/netinet ipfilter(4): Fix typos in source code comments 2024-07-21 11:02:31 +02:00
ipfw net: Remove unneeded NULL check for the allocated ifnet 2024-06-28 18:16:29 +08:00
pf pf: rework pf_icmp_state_lookup() failure mode 2024-09-01 17:05:29 +02:00