From: Antonio Quartulli
Date: Thu, 7 Apr 2022 20:14:11 +0000 (+0200)
Subject: networking_iproute2: don't pass M_WARN to openvpn_execve_check()
X-Git-Tag: v2.5.7~18
X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=113b6c4192ecb927997b187de023aec71712f312;p=thirdparty%2Fopenvpn.git
networking_iproute2: don't pass M_WARN to openvpn_execve_check()
openvpn_execve_check() expects a set of flags as third argument and not
a loglevel. For this reason, if no FATAL behaviour is expected, we
should simply pass 0. openvpn_execve_check() will then pick the
appropriate loglevel on its own.
Signed-off-by: Antonio Quartulli
Acked-by: Gert Doering
Message-Id: <20220407201411.22486-1-a@unstable.cc>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg24090.html
Signed-off-by: Gert Doering
(cherry picked from commit 545f6bdea30e04a09b118c4e1faf6523544fd935)
---
diff --git a/src/openvpn/networking_iproute2.c b/src/openvpn/networking_iproute2.c
index 3ca2bb35c..db0f5503b 100644
--- a/src/openvpn/networking_iproute2.c
+++ b/src/openvpn/networking_iproute2.c
@@ -105,7 +105,7 @@ net_addr_ll_set(openvpn_net_ctx_t *ctx, const openvpn_net_iface_t *iface,
iproute_path, MAC_PRINT_ARG(addr), iface);
argv_msg(M_INFO, &argv);
- if (!openvpn_execve_check(&argv, ctx->es, M_WARN,
+ if (!openvpn_execve_check(&argv, ctx->es, 0,
"Linux ip link set addr failed"))
{
ret = -1;