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, Jun 29, 5:01 PM
Unknown Object (File)
Mon, Jun 29, 5:01 PM
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

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 Skipped
Unit
Tests Skipped
Build Status
Buildable 63177
Build 60061: arc lint + arc unit