HomeFreeBSD

libifconfig: Set error in ifconfig_get_groups

Description

libifconfig: Set error in ifconfig_get_groups

This should return -1 with OTHER/ENOMEM set in the handle when malloc
fails, like everywhere else in libifconfig.

Reviewed by: kp
Differential Revision: https://reviews.freebsd.org/D28964

(cherry picked from commit 1d9ba697f99a88b321a7d8b96fa142ea774cd3be)

Details

Provenance
freqlabsAuthored on Feb 27 2021, 8:07 AM
Reviewer
kp
Differential Revision
D28964: libifconfig: Fix handling of malloc fail in ifconfig_get_groups
Parents
R10:cec3990d3479: vm_reserv: Fix list locking in vm_reserv_reclaim_contig()
Branches
Unknown
Tags
Unknown