Page MenuHomeFreeBSD

pf: Fix error handling in pf_handle_get_tstats()
ClosedPublic

Authored by markj on Dec 5 2025, 9:45 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 15, 12:43 PM
Unknown Object (File)
Wed, Apr 15, 12:54 AM
Unknown Object (File)
Tue, Apr 14, 11:36 PM
Unknown Object (File)
Mon, Apr 6, 3:41 PM
Unknown Object (File)
Sun, Apr 5, 2:39 PM
Unknown Object (File)
Sun, Apr 5, 2:59 AM
Unknown Object (File)
Sat, Apr 4, 3:42 PM
Unknown Object (File)
Wed, Apr 1, 6:29 AM

Details

Summary
  • pfr_table_count() can return an error.
  • We must check for failure from mallocarray(M_NOWAIT).

Fixes: 9e8d2962aad3 ("pf: convert DIOCRGETTSTATS to netlink")
Reported by: Kevin Day <kevin@your.org>

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable