From e1b483878d9824c63d376895da633b0b96fbbaed Mon Sep 17 00:00:00 2001 From: Jung-uk Kim Date: Thu, 22 Sep 2016 13:04:03 +0000 Subject: Import OpenSSL 1.0.2i. --- engines/e_aep.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'engines/e_aep.c') diff --git a/engines/e_aep.c b/engines/e_aep.c index 9bfda76a927d..4e97d29497e7 100644 --- a/engines/e_aep.c +++ b/engines/e_aep.c @@ -1137,7 +1137,8 @@ static AEP_RV ConvertAEPBigNum(void *ArbBigNum, AEP_U32 BigNumSize, /* * Expand the result bn so that it can hold our big num. Size is in bits */ - bn_expand(bn, (int)(BigNumSize << 3)); + if (bn_expand(bn, (int)(BigNumSize << 3)) == NULL) + return AEP_R_HOST_MEMORY; # ifdef SIXTY_FOUR_BIT_LONG bn->top = BigNumSize >> 3; -- cgit v1.2.3