diff options
author | Beniamino Galvani <bgalvani@redhat.com> | 2016-08-11 15:25:21 +0200 |
---|---|---|
committer | Beniamino Galvani <bgalvani@redhat.com> | 2016-08-18 17:43:26 +0200 |
commit | fd8786449b62be465c37c68bf8c534c567f7be5e (patch) | |
tree | 63eb9b3257be5793221c226763f95cab3f92a906 | |
parent | 3d524555842afc04e9400b3e6c909cc9ab5b0302 (diff) | |
download | network-manager-applet-fd8786449b62be465c37c68bf8c534c567f7be5e.tar.gz |
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
(cherry picked from commit 4eecd6409730b0e03b7cca0e21d2f7f35302965b)
-rw-r--r-- | 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 e5aaa846..c50ffb6f 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; |