mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-05 09:58:07 +02:00
vpn: fix ifindex value check
Valid interface indexes are greater than zero.
This commit is contained in:
parent
83c6ebcee7
commit
383a397a92
1 changed files with 1 additions and 1 deletions
|
|
@ -713,7 +713,7 @@ process_generic_config (NMVPNConnection *connection,
|
|||
|
||||
/* Grab the interface index for address/routing operations */
|
||||
priv->ip_ifindex = nm_netlink_iface_to_index (priv->ip_iface);
|
||||
if (priv->ip_ifindex < 0) {
|
||||
if (priv->ip_ifindex <= 0) {
|
||||
nm_log_err (LOGD_VPN, "(%s): failed to look up VPN interface index", priv->ip_iface);
|
||||
nm_vpn_connection_config_maybe_complete (connection, FALSE);
|
||||
return FALSE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue