[network-manager-openvpn/nm-1-0: 4/7] auth-helpers: fix setting http-proxy-password-flags to hash
- From: Jiří Klimeš <jklimes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-openvpn/nm-1-0: 4/7] auth-helpers: fix setting http-proxy-password-flags to hash
- Date: Thu, 9 Jul 2015 10:42:30 +0000 (UTC)
commit cc957a3c3bec9b0c92ab661332b7c00b1c57316f
Author: Jiří Klimeš <jklimes redhat com>
Date: Thu Apr 9 15:12:00 2015 +0200
auth-helpers: fix setting http-proxy-password-flags to hash
The flags are not properly initialized without that.
properties/auth-helpers.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/properties/auth-helpers.c b/properties/auth-helpers.c
index bdd2daa..1056bc1 100644
--- a/properties/auth-helpers.c
+++ b/properties/auth-helpers.c
@@ -922,7 +922,7 @@ advanced_dialog_new_hash_from_connection (NMConnection *connection,
{
GHashTable *hash;
NMSettingVPN *s_vpn;
- const char *secret;
+ const char *secret, *flags;
hash = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, g_free);
@@ -936,6 +936,11 @@ advanced_dialog_new_hash_from_connection (NMConnection *connection,
g_strdup (NM_OPENVPN_KEY_HTTP_PROXY_PASSWORD),
g_strdup (secret));
}
+ flags = nm_setting_vpn_get_data_item (s_vpn, NM_OPENVPN_KEY_HTTP_PROXY_PASSWORD"-flags");
+ if (flags)
+ g_hash_table_insert (hash,
+ g_strdup (NM_OPENVPN_KEY_HTTP_PROXY_PASSWORD"-flags"),
+ g_strdup (flags));
return hash;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]