aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-10-04 16:26:24 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-10-04 16:26:44 +0100
commit448ac56520ca20eccdd0ddd331e846272798aa89 (patch)
tree50e11e24acbbcbff573afdbb43e2ce6d59523b5f /src/plugins
parentd7d8e603ee984d33c014baf2464c7c754b7dbeb8 (diff)
downloadrspamd-448ac56520ca20eccdd0ddd331e846272798aa89.tar.gz
rspamd-448ac56520ca20eccdd0ddd331e846272798aa89.zip
[Fix] Fix double free in SPF
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/spf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/spf.c b/src/plugins/spf.c
index d45556ff2..613c7a189 100644
--- a/src/plugins/spf.c
+++ b/src/plugins/spf.c
@@ -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);