HomeFreeBSD

pf: explicitly NULL state key pointers

Description

pf: explicitly NULL state key pointers

After the pf_state_insert() call we may not use these pointers again.
Explicitly NULL them to ensure we don't.
Also NULL them out if we free the keys directly.

Reviewed by: glebius, markj
MFC after: 3 weeks
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D49553

Details

Provenance
kpAuthored on Thu, Mar 27, 2:37 PM
Reviewer
glebius
Differential Revision
D49553: pf: explicitly NULL state key pointers
Parents
rGd7eacb1531e7: pf: simplify action resolution in pf_test_rule()
Branches
Unknown
Tags
Unknown