From cb5d29461e6e734a2250b984b8423d39f7b9ddaa Mon Sep 17 00:00:00 2001 From: Antonio Quartulli Date: Wed, 29 Sep 2021 13:59:05 +0200 Subject: [PATCH] networking: add missing brackets Our codestyle demands having brackets also around if-blocks made up by one line only. In patch "networking: add and implement net_addr_ll_set() API" this rule was not respected and a new one-line-if-block was added with no brackets. Fix this by adding the related brackets as needed. Signed-off-by: Antonio Quartulli Acked-by: Gert Doering Message-Id: <20210929115905.1281-1-a@unstable.cc> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg22908.html Signed-off-by: Gert Doering --- src/openvpn/networking_iproute2.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/openvpn/networking_iproute2.c b/src/openvpn/networking_iproute2.c index c6623b192d1..67b8894bc1b 100644 --- a/src/openvpn/networking_iproute2.c +++ b/src/openvpn/networking_iproute2.c @@ -107,7 +107,9 @@ net_addr_ll_set(openvpn_net_ctx_t *ctx, const openvpn_net_iface_t *iface, argv_msg(M_INFO, &argv); if (!openvpn_execve_check(&argv, ctx->es, M_WARN, "Linux ip link set addr failed")) + { ret = -1; + } argv_free(&argv);