[gnome-control-center/benzea/fix-non-wifi-password-saving] network: Fix saving passwords for non-wifi connections
- From: Benjamin Berg <bberg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/benzea/fix-non-wifi-password-saving] network: Fix saving passwords for non-wifi connections
- Date: Thu, 9 Dec 2021 17:02:04 +0000 (UTC)
commit 35a0431d0ed85b1ce7a8ac4edaa5fb47d421483d
Author: Benjamin Berg <bberg redhat com>
Date: Thu Dec 9 17:59:59 2021 +0100
network: Fix saving passwords for non-wifi connections
When validating security settings for non-wifi connections, we
temporarily create a wireless connection. Unfortunately, when this
connection is destroyed, it'll clear the stored password from the 802.1x
settings object.
Avoid this by removing the setting before the temporary connection is
destroyed.
panels/network/connection-editor/ce-page-8021x-security.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/panels/network/connection-editor/ce-page-8021x-security.c
b/panels/network/connection-editor/ce-page-8021x-security.c
index 1e4f1464a..30c6c9fc5 100644
--- a/panels/network/connection-editor/ce-page-8021x-security.c
+++ b/panels/network/connection-editor/ce-page-8021x-security.c
@@ -141,6 +141,8 @@ ce_page_8021x_security_validate (CEPage *cepage, NMConnection *connection, GErro
s_8021x = nm_connection_get_setting (tmp_connection, NM_TYPE_SETTING_802_1X);
nm_connection_add_setting (connection, NM_SETTING (g_object_ref (s_8021x)));
+
+ nm_connection_remove_setting (tmp_connection, NM_TYPE_SETTING_802_1X);
}
} else {
nm_connection_remove_setting (connection, NM_TYPE_SETTING_802_1X);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]