diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-09-24 17:20:27 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-09-24 17:20:27 +0100 |
commit | 6965b801b532e3850dc724f4175ae9256216b80c (patch) | |
tree | 2382728328d3b37f4e504d1ff5bb454c2122855e /src/plugins/spf.c | |
parent | d9341f9579b30440ecc5e1b96f4a815a602ee96c (diff) | |
download | rspamd-6965b801b532e3850dc724f4175ae9256216b80c.tar.gz rspamd-6965b801b532e3850dc724f4175ae9256216b80c.zip |
Revert gerror conversion for spf module.
Diffstat (limited to 'src/plugins/spf.c')
-rw-r--r-- | src/plugins/spf.c | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/src/plugins/spf.c b/src/plugins/spf.c index 44a28061c..273243c13 100644 --- a/src/plugins/spf.c +++ b/src/plugins/spf.c @@ -284,25 +284,18 @@ spf_check_list (GList *list, struct worker_task *task) } static void -spf_plugin_callback (struct spf_record *record, struct worker_task *task, GError *err) +spf_plugin_callback (struct spf_record *record, struct worker_task *task) { GList *l; - if (err == NULL) { - if (record && record->addrs && record->sender_domain) { + if (record && record->addrs && record->sender_domain) { - if ((l = rspamd_lru_hash_lookup (spf_module_ctx->spf_hash, record->sender_domain, task->tv.tv_sec)) == NULL) { - l = spf_record_copy (record->addrs); - rspamd_lru_hash_insert (spf_module_ctx->spf_hash, g_strdup (record->sender_domain), - l, task->tv.tv_sec); - } - spf_check_list (l, task); + if ((l = rspamd_lru_hash_lookup (spf_module_ctx->spf_hash, record->sender_domain, task->tv.tv_sec)) == NULL) { + l = spf_record_copy (record->addrs); + rspamd_lru_hash_insert (spf_module_ctx->spf_hash, g_strdup (record->sender_domain), + l, task->tv.tv_sec); } - } - else { - msg_info ("<%s> cannot check SPF record for domain %s: %s", - task->message_id, record ? "null" : record->sender_domain, - err->message); + spf_check_list (l, task); } } |