[network-manager-applet/nma-1-2] applet: fix handling of 802.1x secrets for ethernet connections



commit fdd9bfc0eebe1a70d295ae517ae8247b003168da
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
    (cherry picked from commit 4eecd6409730b0e03b7cca0e21d2f7f35302965b)

 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 6cbe455..3efa8ba 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]