Page MenuHomeFreeBSD

pf: fix state leak
ClosedPublic

Authored by kp on Sep 7 2023, 3:39 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 25, 5:59 AM
Unknown Object (File)
Fri, Apr 11, 2:58 PM
Unknown Object (File)
Mar 26 2025, 12:49 AM
Unknown Object (File)
Feb 5 2025, 4:59 AM
Unknown Object (File)
Feb 4 2025, 2:41 PM
Unknown Object (File)
Feb 4 2025, 12:11 PM
Unknown Object (File)
Jan 25 2025, 11:26 PM
Unknown Object (File)
Jan 23 2025, 3:17 PM

Details

Summary

If we hit the csfailed case in pf_create_state() we may have allocated
a state, so we must also free it. While here reduce the amount of
duplicated cleanup code.

MFC after: 1 week
Sponsored by: Rubicon Communications, LLC ("Netgate")

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 53493
Build 50384: arc lint + arc unit

Event Timeline

kp requested review of this revision.Sep 7 2023, 3:39 PM
This revision was not accepted when it landed; it landed in state Needs Review.Sep 10 2023, 8:40 PM
Closed by commit rGb6ce41118bb1: pf: fix state leak (authored by kp). · Explain Why
This revision was automatically updated to reflect the committed changes.