summaryrefslogtreecommitdiffstats
path: root/crypto/openssl/engines/e_aep.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/openssl/engines/e_aep.c')
-rw-r--r--crypto/openssl/engines/e_aep.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/openssl/engines/e_aep.c b/crypto/openssl/engines/e_aep.c
index 9bfda76..4e97d29 100644
--- a/crypto/openssl/engines/e_aep.c
+++ b/crypto/openssl/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;
OpenPOWER on IntegriCloud