aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-08-30 12:49:02 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-08-30 12:49:02 +0100
commitd81db26db5f350242b8d5df25ff8e9993c0b8a15 (patch)
treec8911c6ab3cec24f498b6c32494bef9f969e15a5 /src
parent32f0cbfd755d38378f8ebae96398cbd085189eeb (diff)
downloadrspamd-d81db26db5f350242b8d5df25ff8e9993c0b8a15.tar.gz
rspamd-d81db26db5f350242b8d5df25ff8e9993c0b8a15.zip
[Fix] Fix options for SPF dnsfail symbol
Diffstat (limited to 'src')
-rw-r--r--src/plugins/spf.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/plugins/spf.c b/src/plugins/spf.c
index 0cce844d6..bc05cd9fe 100644
--- a/src/plugins/spf.c
+++ b/src/plugins/spf.c
@@ -501,12 +501,16 @@ 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;
+
+ opts = g_list_prepend (opts, "(SPF): spf DNS fail");
msg_info_task ("cannot make spf request for [%s]",
task->message_id);
rspamd_task_insert_result (task,
spf_module_ctx->symbol_dnsfail,
1,
- "(SPF): spf DNS fail");
+ opts);
+ g_list_free (opts);
}
else {
rspamd_session_watcher_push (task->s);