From b2a435d9f208d5401e4561e6f106cae619a27c4f Mon Sep 17 00:00:00 2001 From: James Willcox Date: Thu, 20 May 2004 03:30:29 +0000 Subject: Don't crash when the user presses 'cancel'. Fixes #58733. 2004-05-19 James Willcox * lib/e-cert-db.c: (pk11_password): Don't crash when the user presses 'cancel'. Fixes #58733. svn path=/trunk/; revision=26005 --- smime/lib/e-cert-db.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'smime/lib/e-cert-db.c') diff --git a/smime/lib/e-cert-db.c b/smime/lib/e-cert-db.c index 6141501f45..5a76619e16 100644 --- a/smime/lib/e-cert-db.c +++ b/smime/lib/e-cert-db.c @@ -155,6 +155,9 @@ pk11_password (PK11SlotInfo* slot, PRBool retry, void* arg) &pwd, &rv); + if (pwd == NULL) + return NULL; + nsspwd = PORT_Strdup (pwd); memset (pwd, 0, strlen (pwd)); g_free (pwd); -- cgit