talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit ba1f90ef670e85ac3c090dc9df92b6f045a219c7
parent 4697baf0231fb2055e8dd8d724f2e6c98301e190
Author: wwp <subscript@free.fr>
Date:   Tue,  7 Dec 2021 10:32:35 +0100

Fix a crash in case of invalid crypto engine (gpgme_op_verify failed).

Diffstat:
Msrc/plugins/smime/smime.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/plugins/smime/smime.c b/src/plugins/smime/smime.c @@ -374,7 +374,7 @@ static gint check_pkcs7_mime_sig(MimeInfo *mimeinfo, GTask *task; PKCS7MimeTaskData *task_data; SigCheckTaskResult *task_result; - GError *error; + GError *error = NULL; gboolean unref_cancellable = FALSE; debug_print("Checking pkcs7-mime signature\n"); @@ -452,9 +452,9 @@ static gint check_pkcs7_mime_sig(MimeInfo *mimeinfo, } if (task_result == NULL) { - debug_print("sig check task propagated NULL task:%p GError: domain:%s code:%d message:\"%s\"\n", + debug_print("sig check task propagated NULL task: %p GError: domain: %s code: %d message: \"%s\"\n", task, g_quark_to_string(error->domain), error->code, error->message); - g_object_unref(task); + g_object_unref(task); g_error_free(error); return -1; }