summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authoratishkov <a.tishkov@aladdin.ru>2023-07-17 12:44:11 +0300
committerTomas Mraz <tomas@openssl.org>2023-07-18 20:41:17 +0200
commit85b89a8c6da76c241b2f62cf2944b5cf35dfcc24 (patch)
tree3103c3000d3ffa58ff4909a419fe750e7dd7a308 /crypto
parent2b8126d8a8ded94ce010234a37d059f8d3b71b1b (diff)
Remove redundant check
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)
Diffstat (limited to 'crypto')
-rw-r--r--crypto/cms/cms_sd.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/crypto/cms/cms_sd.c b/crypto/cms/cms_sd.c
index be8834d5f1..0d3e22c9e8 100644
--- a/crypto/cms/cms_sd.c
+++ b/crypto/cms/cms_sd.c
@@ -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 */