summaryrefslogtreecommitdiffstats
path: root/crypto/ec/ec_deprecated.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/ec/ec_deprecated.c')
-rw-r--r--crypto/ec/ec_deprecated.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/crypto/ec/ec_deprecated.c b/crypto/ec/ec_deprecated.c
index 22ddb3660c..905b560638 100644
--- a/crypto/ec/ec_deprecated.c
+++ b/crypto/ec/ec_deprecated.c
@@ -47,10 +47,8 @@ EC_POINT *EC_POINT_bn2point(const EC_GROUP *group,
if ((buf_len = BN_num_bytes(bn)) == 0)
buf_len = 1;
- if ((buf = OPENSSL_malloc(buf_len)) == NULL) {
- ECerr(EC_F_EC_POINT_BN2POINT, ERR_R_MALLOC_FAILURE);
+ if ((buf = OPENSSL_malloc(buf_len)) == NULL)
return NULL;
- }
if (BN_bn2binpad(bn, buf, buf_len) < 0) {
OPENSSL_free(buf);