]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Remove redundant check
authoratishkov <a.tishkov@aladdin.ru>
Mon, 17 Jul 2023 09:44:11 +0000 (12:44 +0300)
committerTomas Mraz <tomas@openssl.org>
Tue, 18 Jul 2023 18:41:17 +0000 (20:41 +0200)
CLA: trivial

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21473)

crypto/cms/cms_sd.c

index be8834d5f17879ed4af9499a3689010391a162f6..0d3e22c9e8ed12c4c9bef9aab353401f2ac2593d 100644 (file)
@@ -395,11 +395,6 @@ CMS_SignerInfo *CMS_add1_signer(CMS_ContentInfo *cms,
         }
     }
 
-    if (md == NULL) {
-        ERR_raise(ERR_LIB_CMS, CMS_R_NO_DIGEST_SET);
-        goto err;
-    }
-
     X509_ALGOR_set_md(si->digestAlgorithm, md);
 
     /* See if digest is present in digestAlgorithms */