mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-29 01:00:09 +01:00
core: don't wipe out VPN secrets if we're changing the connection
The VPN secret properties are hashes and thus the default property value does not work with them.
This commit is contained in:
parent
a3f9e51927
commit
dfdcbfe115
1 changed files with 6 additions and 0 deletions
|
|
@ -1229,6 +1229,12 @@ has_some_secrets_cb (NMSetting *setting,
|
|||
{
|
||||
GParamSpec *pspec;
|
||||
|
||||
if (NM_IS_SETTING_VPN (setting)) {
|
||||
if (nm_setting_vpn_get_num_secrets (NM_SETTING_VPN(setting)))
|
||||
*((gboolean *) user_data) = TRUE;
|
||||
return;
|
||||
}
|
||||
|
||||
pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (G_OBJECT (setting)), key);
|
||||
if (pspec) {
|
||||
if ( (flags & NM_SETTING_PARAM_SECRET)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue