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 <antonio@mandelbit.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
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 <gert@greenie.muc.de>
| ... | ... |
@@ -143,7 +143,7 @@ ovpn_nl_recvmsgs(dco_context_t *dco, const char *prefix) |
| 143 | 143 |
msg(M_ERR, "%s: netlink out of memory error", prefix); |
| 144 | 144 |
break; |
| 145 | 145 |
|
| 146 |
- case -M_ERR: |
|
| 146 |
+ case -NLE_AGAIN: |
|
| 147 | 147 |
msg(M_WARN, "%s: netlink reports blocking read - aborting wait", prefix); |
| 148 | 148 |
break; |
| 149 | 149 |
|