HomeFreeBSD

pf: fix crash on low memory

Description

pf: fix crash on low memory

pfr_create_kentry() can return NULL. Don't dereference the pointer it
returns until after we've checked it.

Fixes: 08ed87a4a276 ("pf: convert DIOCRSETADDRS to netlink")
See also: https://redmine.netgate.com/issues/23622
Sponsored by: Rubicon Communications, LLC ("Netgate")

Details

Provenance
kpAuthored on Aug 24 2026, 9:31 AM
Parents
rGe7aa5a5a3f69: e1000: Serialize 82579 CSR writes with the Management Engine
Branches
Unknown
Tags
Unknown