Skip to content

Commit

Permalink
PROV: check for memory allocation failure in digest _dupctx.
Browse files Browse the repository at this point in the history
Reviewed-by: Richard Levitte <[email protected]>
(Merged from openssl#10487)
  • Loading branch information
paulidale committed Nov 22, 2019
1 parent 3c65941 commit c676ff4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion providers/common/include/prov/digestcommon.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ static void *name##_dupctx(void *ctx) \
{ \
CTX *in = (CTX *)ctx; \
CTX *ret = OPENSSL_malloc(sizeof(*ret)); \
*ret = *in; \
if (ret != NULL) \
*ret = *in; \
return ret; \
} \
static OSSL_OP_digest_final_fn name##_internal_final; \
Expand Down

0 comments on commit c676ff4

Please sign in to comment.