diff options
-rw-r--r-- | smime/ChangeLog | 5 | ||||
-rw-r--r-- | smime/gui/e-cert-selector.c | 2 |
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); |