From: Antonio Quartulli Date: Wed, 23 Jul 2025 06:20:06 +0000 (+0200) Subject: dco_linux: fix case statement by using proper error value X-Git-Tag: v2.7_alpha3~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f1a2a37897a6517c4c321abb7bc343bf495c94e2;p=thirdparty%2Fopenvpn.git dco_linux: fix case statement by using proper error value A M_ERR constant accidentally slipped in as possible netlink error value. Substitute it with the actual code matching the following error message. Change-Id: I18df6ef659cab9525dd7847b7dd3950fc1895dd5 Signed-off-by: Antonio Quartulli Acked-by: Gert Doering Message-Id: <20250723062012.22781-1-gert@greenie.muc.de> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg32269.html Signed-off-by: Gert Doering --- diff --git a/src/openvpn/dco_linux.c b/src/openvpn/dco_linux.c index f04ebfe1f..0a7388203 100644 --- a/src/openvpn/dco_linux.c +++ b/src/openvpn/dco_linux.c @@ -143,7 +143,7 @@ ovpn_nl_recvmsgs(dco_context_t *dco, const char *prefix) msg(M_ERR, "%s: netlink out of memory error", prefix); break; - case -M_ERR: + case -NLE_AGAIN: msg(M_WARN, "%s: netlink reports blocking read - aborting wait", prefix); break;