]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
libpfctl: handle allocation failure
authorKristof Provost <kp@FreeBSD.org>
Fri, 17 Nov 2023 09:14:59 +0000 (10:14 +0100)
committerKristof Provost <kp@FreeBSD.org>
Fri, 17 Nov 2023 12:21:14 +0000 (13:21 +0100)
commit33d55d0d0f33787e9e2796b5000be73af42573bc
treea0a3fee5a0c1acb28373aed82f59450298c2db43
parent6c46ebb05dccdcee18f64dc122e6685c05180217
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")
lib/libpfctl/libpfctl.c