From 31d87352f9508ba8e570d2462667907d8979b93d Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Mon, 16 Sep 2024 11:31:12 +0100 Subject: [PATCH] DKIM: fix crash in verify under chunking Broken-by: 9a0f997bac85 --- src/src/miscmods/dkim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/src/miscmods/dkim.c b/src/src/miscmods/dkim.c index a2a8faba8..bd1625187 100644 --- a/src/src/miscmods/dkim.c +++ b/src/src/miscmods/dkim.c @@ -256,7 +256,7 @@ dkim_exim_verify_feed(const uschar * data, unsigned len) int rc; store_pool = POOL_MESSAGE; -if ( (dkim_collect_input || !data) +if ( dkim_collect_input && (rc = pdkim_feed(dkim_verify_ctx, data, len)) != PDKIM_OK) { dkim_collect_error = pdkim_errstr(rc); -- 2.30.2