diff options
| author | Michael Biebl <biebl@debian.org> | 2017-02-16 00:01:12 +0100 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2017-02-16 00:01:12 +0100 |
| commit | ecb2fdd2c959a2a53fa9ce961203d363f86b389b (patch) | |
| tree | 681cfa4e900d09fa9af89cac3cec4e34568b11c0 /clients/cli/settings.c | |
| parent | 01f15cee9ceeb145ca7d328b255fbce2b4eacce5 (diff) | |
| parent | a222e56e103f949b148a6942e385ccca2c26d9f3 (diff) | |
Merge tag 'upstream/1.6.2'
Upstream version 1.6.2
Diffstat (limited to 'clients/cli/settings.c')
| -rw-r--r-- | clients/cli/settings.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clients/cli/settings.c b/clients/cli/settings.c index df0effa3..1c8d5462 100644 --- a/clients/cli/settings.c +++ b/clients/cli/settings.c @@ -1916,6 +1916,7 @@ nmc_property_802_1X_get_phase2_private_key_full (NMSetting *setting, NmcProperty char *val_strip = g_strstrip (g_strdup (val)); \ char *p = val_strip; \ const char *path, *password; \ + gs_free char *password_free = NULL; \ NMSetting8021xCKScheme scheme = NM_SETTING_802_1X_CK_SCHEME_PATH; \ gboolean success; \ \ @@ -1929,7 +1930,7 @@ nmc_property_802_1X_get_phase2_private_key_full (NMSetting *setting, NmcProperty if (g_strv_length (strv) == 2) \ password = strv[1]; \ else \ - password = pwd_func (NM_SETTING_802_1X (setting)); \ + password = password_free = g_strdup (pwd_func (NM_SETTING_802_1X (setting))); \ success = set_func (NM_SETTING_802_1X (setting), path, password, scheme, NULL, error); \ g_free (val_strip); \ g_strfreev (strv); \ |