Page MenuHomeFreeBSD

pf: explicitly NULL state key pointers
ClosedPublic

Authored by kp on Mar 28 2025, 2:48 PM.
Tags
None
Referenced Files
Unknown Object (File)
May 16 2026, 2:37 AM
Unknown Object (File)
May 16 2026, 2:37 AM
Unknown Object (File)
May 16 2026, 2:37 AM
Unknown Object (File)
Apr 29 2026, 10:34 AM
Unknown Object (File)
Apr 29 2026, 10:29 AM
Unknown Object (File)
Apr 28 2026, 1:06 PM
Unknown Object (File)
Apr 28 2026, 12:11 AM
Unknown Object (File)
Apr 27 2026, 7:59 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