]> source.dussan.org Git - rspamd.git/commitdiff
Fix GError use-after-free
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 16 Nov 2015 11:59:45 +0000 (11:59 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 16 Nov 2015 11:59:45 +0000 (11:59 +0000)
src/plugins/dkim_check.c

index 7cf65f2a3d0f865d65ef04feb53ba1792289acc0..494c458eae73c784754be01b98224f94857b6a6d 100644 (file)
@@ -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: "