mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-20 07:00:05 +01:00
libnm-core: fix p-key validation for Infiniband connections
verify() is setting an error without returning FALSE to make the validation fail. When the parent is set, the device is a Infiniband partition and it must have a p-key != -1. Fixes:d595f7843e('libnm: add libnm/libnm-core (part 1)') (cherry picked from commitf4f1ecc7ea)
This commit is contained in:
parent
976c5dbb5f
commit
6b01ae3f15
1 changed files with 1 additions and 0 deletions
|
|
@ -212,6 +212,7 @@ verify(NMSetting *setting, NMConnection *connection, GError **error)
|
||||||
NM_CONNECTION_ERROR_INVALID_PROPERTY,
|
NM_CONNECTION_ERROR_INVALID_PROPERTY,
|
||||||
_("Must specify a P_Key if specifying parent"));
|
_("Must specify a P_Key if specifying parent"));
|
||||||
g_prefix_error(error, "%s: ", NM_SETTING_INFINIBAND_PARENT);
|
g_prefix_error(error, "%s: ", NM_SETTING_INFINIBAND_PARENT);
|
||||||
|
return FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue