]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Add missing check for nl_socket_alloc failure
authorArne Schwabe <arne@rfc2549.org>
Tue, 21 Nov 2023 17:06:03 +0000 (18:06 +0100)
committerGert Doering <gert@greenie.muc.de>
Sat, 2 Dec 2023 15:56:35 +0000 (16:56 +0100)
commitd1c31e428120bb0fc9488c62c1691c92a37d94c3
tree2cf7b551681a7259adbbc8119f33374e2c1f7380
parent59551b93cdb55397d63b2fe58ad99612821c0faf
Add missing check for nl_socket_alloc failure

This can happen if the memory alloc fails.

Patch V2: add goto error
Patch V3: return -ENOMEM instead of going to error

Change-Id: Iee66caa794d267ac5f8bee584633352893047171
Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: Antonio Quartulli <antonio@openvpn.net>
Message-Id: <20231121170603.886801-1-arne@rfc2549.org>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg27541.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/dco_linux.c