summaryrefslogtreecommitdiff
path: root/pith/smime.c
diff options
context:
space:
mode:
Diffstat (limited to 'pith/smime.c')
-rw-r--r--pith/smime.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/pith/smime.c b/pith/smime.c
index de5996db..a19a440b 100644
--- a/pith/smime.c
+++ b/pith/smime.c
@@ -2785,8 +2785,11 @@ smime_extract_and_save_cert(PKCS7 *p7)
/* if not saved, try to save it */
if(already_saved == 0
- && (*pith_smime_confirm_save)(email[j]) == 1)
+ && (*pith_smime_confirm_save)(email[j]) == 1){
save_cert_for(email[j], x, Public);
+ if(ps_global->smime->publiccertlist) /* renew store */
+ free_certlist(&ps_global->smime->publiccertlist);
+ }
/* check if it got saved */
cert = get_cert_for(email[j], Public, 1);