HomeFreeBSD

ipfilter: Avoid allocating a new ipf token when not needed

Description

ipfilter: Avoid allocating a new ipf token when not needed

Only allocate a new ipftoken_t if one cannot be found. This eliminates
allocating unnecessary token structures that will never be used when
performing simple lookups for existing token structures.

(cherry picked from commit 7f5e3b9fa3d159b7f061b4d01a767cbe5d0527f3)

Details

Provenance
cyAuthored on Sep 12 2023, 8:29 PM
Parents
rG205f9a4fbc82: libprocstat: use elf_getphdrnum rather than deprecated elf_getphnum
Branches
Unknown
Tags
Unknown