From: Vsevolod Stakhov Date: Mon, 22 Oct 2018 10:30:57 +0000 (+0100) Subject: [Minor] Another fix in spf plugin X-Git-Tag: 1.8.2~167 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=52baa11e0b8574cd52a18b035e0a749bd27d0b94;p=thirdparty%2Frspamd.git [Minor] Another fix in spf plugin --- diff --git a/src/plugins/spf.c b/src/plugins/spf.c index eb8b6947f1..c3337a4ebc 100644 --- a/src/plugins/spf.c +++ b/src/plugins/spf.c @@ -603,10 +603,12 @@ spf_symbol_callback (struct rspamd_task *task, rspamd_inet_address_is_local (task->from_addr, TRUE))) { msg_info_task ("skip SPF checks for local networks and authorized users"); rspamd_symbols_cache_finalize_item (task, item); + return; } domain = rspamd_spf_get_domain (task); + rspamd_symcache_item_async_inc (task, item); if (domain) { if ((l = @@ -625,11 +627,12 @@ spf_symbol_callback (struct rspamd_task *task, spf_module_ctx->symbol_dnsfail, 1, "(SPF): spf DNS fail"); - rspamd_symbols_cache_finalize_item (task, item); } else { rspamd_symcache_item_async_inc (task, item); } } } + + rspamd_symcache_item_async_dec_check (task, item); }