[network-manager-applet] applet: fix handling of 802.1x secrets for ethernet connections
- From: Beniamino Galvani <bgalvani src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-applet] applet: fix handling of 802.1x secrets for ethernet connections
- Date: Thu, 18 Aug 2016 15:43:02 +0000 (UTC)
commit 4eecd6409730b0e03b7cca0e21d2f7f35302965b
Author: Beniamino Galvani <bgalvani redhat com>
Date: Thu Aug 11 15:25:21 2016 +0200
applet: fix handling of 802.1x secrets for ethernet connections
When @tmp_connection is destroyed it clears all its secrets: remove
the 802.1x setting before unreferencing the connection since the
setting is used by another connection.
Fixes: 3722a190468f5ce5898db8838611bc826d3153f1
https://bugzilla.gnome.org/show_bug.cgi?id=769661
src/ethernet-dialog.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/ethernet-dialog.c b/src/ethernet-dialog.c
index e5aaa84..c50ffb6 100644
--- a/src/ethernet-dialog.c
+++ b/src/ethernet-dialog.c
@@ -156,6 +156,10 @@ nma_ethernet_dialog_get_connection (GtkWidget *dialog)
/* Save new CA cert ignore values to GSettings */
eap_method_ca_cert_ignore_save (tmp_connection);
+ /* Remove the 8021x setting to prevent the clearing of secrets when the
+ * simple-connection is destroyed.
+ */
+ nm_connection_remove_setting (tmp_connection, NM_TYPE_SETTING_802_1X);
g_object_unref (tmp_connection);
return connection;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]