From d2fac627d8ea00bbaa5108f46e449bef9acf3d56 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Thu, 8 Jan 2004 06:00:27 +0000 Subject: check certlist != NULL, CERT_LIST_EMPTY dereferences it. Bug #52457. 2004-01-07 Not Zed * gui/e-cert-selector.c (ecs_find_current): check certlist != NULL, CERT_LIST_EMPTY dereferences it. Bug #52457. svn path=/trunk/; revision=24102 --- smime/gui/e-cert-selector.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'smime/gui/e-cert-selector.c') 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); -- cgit