HomeFreeBSD

libpfctl: handle allocation failure

Description

libpfctl: handle allocation failure

While it's unlikely for userspace to fail to allocate memory it is still
possible. Handle malloc() returning NULL.

Reported by: Bill Meeks <bill@themeeks.net>
MFC after: 1 week
Sponsored by: Rubicon Communications, LLC ("Netgate")

Details

Provenance
kpAuthored on Nov 17 2023, 9:14 AM
Parents
rG6c46ebb05dcc: dpaa2: fdt improve detection for dpmac/phys
Branches
Unknown
Tags
Unknown