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)
Tue, Sep 8, 8:34 PM
Unknown Object (File)
Sun, Sep 6, 3:30 PM
Unknown Object (File)
Sun, Sep 6, 1:59 PM
Unknown Object (File)
Sun, Sep 6, 10:07 AM
Unknown Object (File)
Sun, Sep 6, 4:46 AM
Unknown Object (File)
Sat, Sep 5, 7:47 PM
Unknown Object (File)
Sat, Sep 5, 7:09 PM
Unknown Object (File)
Sat, Sep 5, 2:32 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