DKIM: fix crash in verify under chunking
authorJeremy Harris <jgh146exb@wizmail.org>
Mon, 16 Sep 2024 10:31:12 +0000 (11:31 +0100)
committerJeremy Harris <jgh146exb@wizmail.org>
Mon, 16 Sep 2024 10:31:16 +0000 (11:31 +0100)
Broken-by: 9a0f997bac85
src/src/miscmods/dkim.c

index a2a8faba8360aefae3ed1aeb9057e9308f938fc8..bd1625187744728fd9039c44ccc17d8f770f8862 100644 (file)
@@ -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);