File nma-wired-8021x-authentication.patch of Package NetworkManager-gnome
Index: nm-applet-0.7.0/src/applet-device-wired.c
===================================================================
--- nm-applet-0.7.0.orig/src/applet-device-wired.c
+++ nm-applet-0.7.0/src/applet-device-wired.c
@@ -651,7 +651,10 @@ get_8021x_secrets_cb (GtkDialog *dialog,
goto done;
}
+ utils_fill_connection_certs (connection);
secrets = nm_setting_to_hash (setting);
+ utils_clear_filled_connection_certs (connection);
+
if (!secrets) {
g_set_error (&err, NM_SETTINGS_ERROR, NM_SETTINGS_ERROR_INTERNAL_ERROR,
"%s.%d (%s): failed to hash setting '%s'.",
@@ -659,8 +662,6 @@ get_8021x_secrets_cb (GtkDialog *dialog,
goto done;
}
- utils_fill_connection_certs (connection);
- utils_clear_filled_connection_certs (connection);
/* Returned secrets are a{sa{sv}}; this is the outer a{s...} hash that
* will contain all the individual settings hashes.