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)
Mon, May 26, 8:42 PM
Unknown Object (File)
Tue, May 20, 5:50 PM
Unknown Object (File)
Apr 23 2025, 5:14 AM
Unknown Object (File)
Apr 23 2025, 5:08 AM
Unknown Object (File)
Apr 23 2025, 3:30 AM
Unknown Object (File)
Apr 23 2025, 2:48 AM
Unknown Object (File)
Apr 23 2025, 2:47 AM
Unknown Object (File)
Apr 23 2025, 1:04 AM

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