[network-manager-applet: 1/20] applet: fix bad assertion for 'password-raw' password



commit d6e83cb590ba1d14366078afdf6177506b84703d
Author: Jiří Klimeš <jklimes redhat com>
Date:   Fri Apr 24 14:39:55 2015 +0200

    applet: fix bad assertion for 'password-raw' password
    
    (nm-applet:7938): nm-applet-CRITICAL **: write_one_secret_to_keyring: assertion 'type == G_TYPE_STRING' 
failed

 src/applet-agent.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/applet-agent.c b/src/applet-agent.c
index 93935e2..0fabbf5 100644
--- a/src/applet-agent.c
+++ b/src/applet-agent.c
@@ -663,6 +663,9 @@ write_one_secret_to_keyring (NMSetting *setting,
                /* Process VPN secrets specially since it's a hash of secrets, not just one */
                nm_setting_vpn_foreach_secret (NM_SETTING_VPN (setting), vpn_secret_iter_cb, r);
        } else {
+               /* FIXME: password-raw is not string */
+               if (!g_strcmp0 (key, NM_SETTING_802_1X_PASSWORD_RAW))
+                       return;
                g_return_if_fail (type == G_TYPE_STRING);
                secret = g_value_get_string (value);
                if (secret && strlen (secret))


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