]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Fix] Fix double free in SPF
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 4 Oct 2016 15:26:24 +0000 (16:26 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 4 Oct 2016 15:26:44 +0000 (16:26 +0100)
src/plugins/spf.c

index d45556ff2405369b2ad4156630ebf46b55e711fd..613c7a189222cafc0354c7f3843f43166cbe4bf1 100644 (file)
@@ -570,6 +570,7 @@ spf_symbol_callback (struct rspamd_task *task, void *unused)
                }
                else {
                        w = rspamd_session_get_watcher (task->s);
+
                        if (!rspamd_spf_resolve (task, spf_plugin_callback, w)) {
                                GList *opts = NULL;
 
@@ -580,7 +581,6 @@ spf_symbol_callback (struct rspamd_task *task, void *unused)
                                                spf_module_ctx->symbol_dnsfail,
                                                1,
                                                opts);
-                               g_list_free (opts);
                        }
                        else {
                                rspamd_session_watcher_push (task->s);