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



commit bfe820cc7594ef7c322c25317272129fd73ed1a6
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 7bfb5eb..f620015 100644
--- a/properties/nm-openvpn.c
+++ b/properties/nm-openvpn.c
@@ -398,7 +398,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]