]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix arc seal validation
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 27 Jan 2020 18:35:18 +0000 (18:35 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 27 Jan 2020 18:35:18 +0000 (18:35 +0000)
src/libserver/dkim.c

index b3efd21492509af4e6321fee01eb6fc0a62190ff..6b8262ee2af089fe145c23857e73c1841407979b 100644 (file)
@@ -2586,7 +2586,7 @@ rspamd_dkim_check (rspamd_dkim_context_t *ctx,
        }
 
 
-       if (ctx->common.type == RSPAMD_DKIM_ARC_SEAL && res == DKIM_CONTINUE) {
+       if (ctx->common.type == RSPAMD_DKIM_ARC_SEAL && res && res->rcode == DKIM_CONTINUE) {
                switch (ctx->cv) {
                case RSPAMD_ARC_INVALID:
                        msg_info_dkim ("arc seal is invalid i=%d", ctx->common.idx);