]> git.ipfire.org Git - thirdparty/openvpn.git/commit
networking_sitnl: always return negative error code in case of failure
authorAntonio Quartulli <a@unstable.cc>
Wed, 13 Jul 2022 12:14:16 +0000 (14:14 +0200)
committerGert Doering <gert@greenie.muc.de>
Wed, 13 Jul 2022 12:23:50 +0000 (14:23 +0200)
commitdab9343a0530ee2468304823181372393d365675
tree1989aa6fb85f280b2448faa75c47411a70d17048
parentac14d90e7e5a80c57d064b1d3a5deb1db63b0911
networking_sitnl: always return negative error code in case of failure

The API is designed to always return a negative error code in case of
failure, therefore we should return '-errno' when ifindex has failed.

Signed-off-by: Antonio Quartulli <a@unstable.cc>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20220713121416.1912-1-a@unstable.cc>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg24686.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/networking_sitnl.c