Page MenuHomeFreeBSD

pf: explicitly NULL state key pointers
ClosedPublic

Authored by kp on Mar 28 2025, 2:48 PM.
Tags
None
Referenced Files
F151328878: D49553.id152907.diff
Tue, Apr 7, 3:36 PM
F151241488: D49553.id152792.diff
Tue, Apr 7, 1:49 AM
Unknown Object (File)
Sat, Apr 4, 2:10 PM
Unknown Object (File)
Sat, Mar 28, 11:52 AM
Unknown Object (File)
Sun, Mar 15, 3:51 PM
Unknown Object (File)
Mon, Mar 9, 3:19 AM
Unknown Object (File)
Mar 8 2026, 4:15 AM
Unknown Object (File)
Mar 4 2026, 6:02 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