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)
Wed, Apr 23, 5:14 AM
Unknown Object (File)
Wed, Apr 23, 5:08 AM
Unknown Object (File)
Wed, Apr 23, 3:30 AM
Unknown Object (File)
Wed, Apr 23, 2:48 AM
Unknown Object (File)
Wed, Apr 23, 2:47 AM
Unknown Object (File)
Wed, Apr 23, 1:04 AM
Unknown Object (File)
Wed, Apr 23, 12:39 AM
Unknown Object (File)
Thu, Apr 17, 2:47 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