From 572a42155e9799036175bdf518626abebf1972e6 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 16 Nov 2015 11:59:45 +0000 Subject: [PATCH] Fix GError use-after-free --- src/plugins/dkim_check.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/dkim_check.c b/src/plugins/dkim_check.c index 7cf65f2a3..494c458ea 100644 --- a/src/plugins/dkim_check.c +++ b/src/plugins/dkim_check.c @@ -478,6 +478,7 @@ dkim_symbol_callback (struct rspamd_task *task, void *unused) msg_info_task ("<%s> cannot parse DKIM context: %s", task->message_id, err->message); g_error_free (err); + err = NULL; } else { msg_info_task ("<%s> cannot parse DKIM context: " -- 2.39.5