From: Jeremy Harris Date: Mon, 16 Sep 2024 10:31:12 +0000 (+0100) Subject: DKIM: fix crash in verify under chunking X-Git-Url: https://git.exim.org/exim.git/commitdiff_plain/31d87352f9508ba8e570d2462667907d8979b93d?hp=97dbb3dd270ac1a9c1fb39fb0fa2ba65e878a64f DKIM: fix crash in verify under chunking Broken-by: 9a0f997bac85 --- 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);