[exim-cvs] DKIM: fix crash in verify under chunking

Top Page
Delete this message
Reply to this message
Author: Exim Git Commits Mailing List
Date:  
To: exim-cvs
Subject: [exim-cvs] DKIM: fix crash in verify under chunking
Gitweb: https://git.exim.org/exim.git/commitdiff/31d87352f9508ba8e570d2462667907d8979b93d
Commit:     31d87352f9508ba8e570d2462667907d8979b93d
Parent:     97dbb3dd270ac1a9c1fb39fb0fa2ba65e878a64f
Author:     Jeremy Harris <jgh146exb@???>
AuthorDate: Mon Sep 16 11:31:12 2024 +0100
Committer:  Jeremy Harris <jgh146exb@???>
CommitDate: Mon Sep 16 11:31:16 2024 +0100


    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);


--
## subscription configuration (requires account):
## https://lists.exim.org/mailman3/postorius/lists/exim-cvs.lists.exim.org/
## unsubscribe (doesn't require an account):
## exim-cvs-unsubscribe@???
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/