aboutsummaryrefslogtreecommitdiffstats
path: root/smime
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2004-01-08 14:00:27 +0800
committerMichael Zucci <zucchi@src.gnome.org>2004-01-08 14:00:27 +0800
commitd2fac627d8ea00bbaa5108f46e449bef9acf3d56 (patch)
treeea3e7fdb4ff0b8ce458e245f660715df44e9e7c5 /smime
parent9cf83b64d03c5b2b3c12d55decc3a35710760bf0 (diff)
downloadgsoc2013-evolution-d2fac627d8ea00bbaa5108f46e449bef9acf3d56.tar
gsoc2013-evolution-d2fac627d8ea00bbaa5108f46e449bef9acf3d56.tar.gz
gsoc2013-evolution-d2fac627d8ea00bbaa5108f46e449bef9acf3d56.tar.bz2
gsoc2013-evolution-d2fac627d8ea00bbaa5108f46e449bef9acf3d56.tar.lz
gsoc2013-evolution-d2fac627d8ea00bbaa5108f46e449bef9acf3d56.tar.xz
gsoc2013-evolution-d2fac627d8ea00bbaa5108f46e449bef9acf3d56.tar.zst
gsoc2013-evolution-d2fac627d8ea00bbaa5108f46e449bef9acf3d56.zip
check certlist != NULL, CERT_LIST_EMPTY dereferences it. Bug #52457.
2004-01-07 Not Zed <NotZed@Ximian.com> * gui/e-cert-selector.c (ecs_find_current): check certlist != NULL, CERT_LIST_EMPTY dereferences it. Bug #52457. svn path=/trunk/; revision=24102
Diffstat (limited to 'smime')
-rw-r--r--smime/ChangeLog5
-rw-r--r--smime/gui/e-cert-selector.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/smime/ChangeLog b/smime/ChangeLog
index 8ab6e0719c..db508bbedf 100644
--- a/smime/ChangeLog
+++ b/smime/ChangeLog
@@ -1,3 +1,8 @@
+2004-01-07 Not Zed <NotZed@Ximian.com>
+
+ * gui/e-cert-selector.c (ecs_find_current): check certlist !=
+ NULL, CERT_LIST_EMPTY dereferences it. Bug #52457.
+
2004-01-05 Chris Toshok <toshok@ximian.com>
* lib/e-cert-db.c (e_cert_db_login_to_slot): oops, remove
diff --git a/smime/gui/e-cert-selector.c b/smime/gui/e-cert-selector.c
index 9c64ebb37e..f35510e57e 100644
--- a/smime/gui/e-cert-selector.c
+++ b/smime/gui/e-cert-selector.c
@@ -69,7 +69,7 @@ ecs_find_current(ECertSelector *ecs)
CERTCertListNode *node;
int n;
- if (CERT_LIST_EMPTY(p->certlist))
+ if (p->certlist == NULL || CERT_LIST_EMPTY(p->certlist))
return NULL;
n = gtk_option_menu_get_history((GtkOptionMenu *)p->menu);