HomeFreeBSD

pflow: handle unattached states

Description

pflow: handle unattached states

It's possible for states to be cleaned up (through pf_detach_state()) that
have not been fully attached. For example if there's an ID conflict during
pf_state_insert().

pflow exports states from pf_detach_state(), so it can get called on such
states, but did not account for this and could end up dereferencing a NULL
state key.

Check for this in export_pflow() and do not export unattached states.

See also: https://redmine.pfsense.org/issues/15446
Sponsored by: Rubicon Communications, LLC ("Netgate")

Details

Provenance
kpAuthored on Apr 29 2024, 9:51 AM
Parents
rG86fbb05da1ae: ctl: Fix CTL GET EVENT STATUS NOTIFICATION valid bits
Branches
Unknown
Tags
Unknown