Skip to content

Commit

Permalink
Remove redundant check
Browse files Browse the repository at this point in the history
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 #21473)
  • Loading branch information
atishkov authored and t8m committed Jul 18, 2023
1 parent 2b8126d commit 85b89a8
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions crypto/cms/cms_sd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 85b89a8

Please sign in to comment.