Page MenuHomeFreeBSD

pf: explicitly NULL state key pointers
ClosedPublic

Authored by kp on Mar 28 2025, 2:48 PM.
Tags
None
Referenced Files
F174668211: D49553.id152792.diff
Mon, Oct 5, 2:03 AM
F174663660: D49553.id.diff
Mon, Oct 5, 1:19 AM
F174656383: D49553.id152907.diff
Mon, Oct 5, 12:18 AM
F174650307: D49553.diff
Sun, Oct 4, 11:03 PM
Unknown Object (File)
Sat, Oct 3, 8:49 PM
Unknown Object (File)
Sun, Sep 13, 9:58 AM
Unknown Object (File)
Thu, Sep 10, 10:40 PM
Unknown Object (File)
Tue, Sep 8, 8:34 PM

Details

Summary

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.

MFC after: 3 weeks
Sponsored by: Rubicon Communications, LLC ("Netgate")

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable