[network-manager-applet] libnma/cert-chooser: avoid crash when gck slot is NULL
- From: Beniamino Galvani <bgalvani src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-applet] libnma/cert-chooser: avoid crash when gck slot is NULL
- Date: Thu, 10 May 2018 07:59:46 +0000 (UTC)
commit 5abd5e9f2739881d15d61246cd149e97f1d4d6af
Author: Beniamino Galvani <bgalvani redhat com>
Date: Tue May 8 11:08:33 2018 +0200
libnma/cert-chooser: avoid crash when gck slot is NULL
Fixes: 2644d631afd072f66878799e75c5aa1947510c7a
https://bugzilla.redhat.com/show_bug.cgi?id=1574908
src/libnma/nma-cert-chooser-button.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/libnma/nma-cert-chooser-button.c b/src/libnma/nma-cert-chooser-button.c
index 0065176..5e770bc 100644
--- a/src/libnma/nma-cert-chooser-button.c
+++ b/src/libnma/nma-cert-chooser-button.c
@@ -64,6 +64,8 @@ is_this_a_slot_nobody_loves (GckSlot *slot)
gboolean ret_value = FALSE;
slot_info = gck_slot_get_info (slot);
+ if (!slot_info)
+ return TRUE;
/* The p11-kit CA trusts do use their filesystem paths for description. */
if (g_str_has_prefix (slot_info->slot_description, "/"))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]