[network-manager-applet/lr/tls-domain-suffix-match-rh1457542: 2/12] wireless-security/tls: fix unsetting the CA
- From: Lubomir Rintel <lkundrak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-applet/lr/tls-domain-suffix-match-rh1457542: 2/12] wireless-security/tls: fix unsetting the CA
- Date: Tue, 13 Jun 2017 13:14:21 +0000 (UTC)
commit 3d40d61a355b1cdc85f96a2ede40a933c44b9e54
Author: Lubomir Rintel <lkundrak v3 sk>
Date: Fri Jun 9 18:37:37 2017 +0200
wireless-security/tls: fix unsetting the CA
src/wireless-security/eap-method-tls.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/wireless-security/eap-method-tls.c b/src/wireless-security/eap-method-tls.c
index 4e9e6b6..83c64f5 100644
--- a/src/wireless-security/eap-method-tls.c
+++ b/src/wireless-security/eap-method-tls.c
@@ -112,7 +112,7 @@ fill_connection (EAPMethod *parent, NMConnection *connection)
NMSetting8021x *s_8021x;
NMSettingSecretFlags secret_flags;
GtkWidget *widget;
- char *value;
+ char *value = NULL;
const char *password = NULL;
GError *error = NULL;
gboolean ca_cert_error = FALSE;
@@ -202,7 +202,8 @@ fill_connection (EAPMethod *parent, NMConnection *connection)
}
/* TLS CA certificate */
- value = nma_cert_chooser_get_cert (NMA_CERT_CHOOSER (method->ca_cert_chooser), &scheme);
+ if (gtk_widget_get_sensitive (method->ca_cert_chooser))
+ value = nma_cert_chooser_get_cert (NMA_CERT_CHOOSER (method->ca_cert_chooser), &scheme);
format = NM_SETTING_802_1X_CK_FORMAT_UNKNOWN;
if (parent->phase2) {
if (!nm_setting_802_1x_set_phase2_ca_cert (s_8021x, value, scheme, &format, &error)) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]