mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-30 16:40:13 +01:00
libnm: fix bug verifying private-key for WireGuard setting
Fixes: aea47ed206 ('libnm: implement "wireguard.private-key" as direct string property')
This commit is contained in:
parent
6f0e22a64a
commit
b5b9a109e1
1 changed files with 1 additions and 1 deletions
|
|
@ -1771,7 +1771,7 @@ verify_secrets(NMSetting *setting, NMConnection *connection, GError **error)
|
|||
NMSettingWireGuardPrivate *priv = NM_SETTING_WIREGUARD_GET_PRIVATE(setting);
|
||||
guint i;
|
||||
|
||||
if (!priv->private_key_valid) {
|
||||
if (priv->private_key && !priv->private_key_valid) {
|
||||
g_set_error_literal(error,
|
||||
NM_CONNECTION_ERROR,
|
||||
NM_CONNECTION_ERROR_INVALID_PROPERTY,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue