[network-manager-applet/jk/password-icon-1-0: 18/18] applet: fix bad assertion for 'password-raw' password



commit f66482f609dce82cab7bbe8100250bc21ceb7dad
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 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/applet-agent.c b/src/applet-agent.c
index 5ea0d3a..b23bbbe 100644
--- a/src/applet-agent.c
+++ b/src/applet-agent.c
@@ -694,7 +694,7 @@ write_one_secret_to_keyring (NMSetting *setting,
                                               vpn_secret_iter_cb,
                                               r);
        } else {
-               g_return_if_fail (type == G_TYPE_STRING);
+               g_return_if_fail (type == G_TYPE_STRING || !g_strcmp0 (key, NM_SETTING_802_1X_PASSWORD_RAW));
                secret = g_value_get_string (value);
                if (secret && strlen (secret))
                        save_one_secret (r, setting, key, secret, NULL);


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