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)
Sat, May 16, 11:43 PM
Unknown Object (File)
Sat, May 16, 11:43 PM
Unknown Object (File)
Sat, May 16, 11:43 PM
Unknown Object (File)
Apr 20 2026, 10:09 PM
Unknown Object (File)
Apr 15 2026, 12:43 PM
Unknown Object (File)
Apr 15 2026, 12:54 AM
Unknown Object (File)
Apr 14 2026, 11:36 PM
Unknown Object (File)
Apr 6 2026, 3:41 PM

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