[network-manager-openvpn/NM_0_8] properties: fix store/read HTTP Proxy password to system settings



commit d915bbe9982a83c3fe82fa00792399500f33e173
Author: JiÅ?í KlimeÅ¡ <jklimes redhat com>
Date:   Fri Feb 4 12:42:21 2011 +0100

    properties: fix store/read HTTP Proxy password to system settings

 properties/nm-openvpn.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/properties/nm-openvpn.c b/properties/nm-openvpn.c
index bb2a452..7fa645a 100644
--- a/properties/nm-openvpn.c
+++ b/properties/nm-openvpn.c
@@ -402,7 +402,7 @@ hash_copy_advanced (gpointer key, gpointer data, gpointer user_data)
 	g_return_if_fail (value && strlen (value));
 
 	/* HTTP Proxy password is a secret, not a data item */
-	if (!strcmp (value, NM_OPENVPN_KEY_HTTP_PROXY_PASSWORD))
+	if (!strcmp (key, NM_OPENVPN_KEY_HTTP_PROXY_PASSWORD))
 		nm_setting_vpn_add_secret (s_vpn, (const char *) key, value);
 	else
 		nm_setting_vpn_add_data_item (s_vpn, (const char *) key, value);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]