aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-05-12 15:40:14 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-05-12 15:40:14 +0100
commita0016ed60bbc331d64cb992ea9ccd2e5a934a379 (patch)
tree133a61e25c6348ba117b65795374f41df925708c
parent780bb6dfaefc471f4b8d2100642a2c1af6a2623b (diff)
downloadrspamd-a0016ed60bbc331d64cb992ea9ccd2e5a934a379.tar.gz
rspamd-a0016ed60bbc331d64cb992ea9ccd2e5a934a379.zip
Skip unparseable DKIM signatures.
-rw-r--r--src/plugins/dkim_check.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/dkim_check.c b/src/plugins/dkim_check.c
index c5e73fbdc..69dee2859 100644
--- a/src/plugins/dkim_check.c
+++ b/src/plugins/dkim_check.c
@@ -331,6 +331,10 @@ dkim_module_check (struct dkim_check_result *res)
if (all_done) {
DL_FOREACH (first, cur) {
+ if (cur->ctx == NULL) {
+ continue;
+ }
+
if (cur->res == DKIM_CONTINUE) {
rspamd_task_insert_result (cur->task,
dkim_module_ctx->symbol_allow,