Page MenuHomeFreeBSD

pf: explicitly NULL state key pointers
ClosedPublic

Authored by kp on Fri, Mar 28, 2:48 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 1, 3:13 AM
Unknown Object (File)
Mon, Mar 31, 6:53 PM
Unknown Object (File)
Sun, Mar 30, 3:12 AM
Unknown Object (File)
Sat, Mar 29, 5:02 PM
Unknown Object (File)
Sat, Mar 29, 4:43 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