summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ec/ec_ameth.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/ec/ec_ameth.c')
-rw-r--r--src/lib/libcrypto/ec/ec_ameth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/libcrypto/ec/ec_ameth.c b/src/lib/libcrypto/ec/ec_ameth.c
index ec074329f2..521ada3299 100644
--- a/src/lib/libcrypto/ec/ec_ameth.c
+++ b/src/lib/libcrypto/ec/ec_ameth.c
@@ -325,7 +325,7 @@ eckey_priv_encode(PKCS8_PRIV_KEY_INFO * p8, const EVP_PKEY * pkey)
325 ECerr(EC_F_ECKEY_PRIV_ENCODE, ERR_R_EC_LIB); 325 ECerr(EC_F_ECKEY_PRIV_ENCODE, ERR_R_EC_LIB);
326 return 0; 326 return 0;
327 } 327 }
328 ep = (unsigned char *) malloc(eplen); 328 ep = malloc(eplen);
329 if (!ep) { 329 if (!ep) {
330 EC_KEY_set_enc_flags(ec_key, old_flags); 330 EC_KEY_set_enc_flags(ec_key, old_flags);
331 ECerr(EC_F_ECKEY_PRIV_ENCODE, ERR_R_MALLOC_FAILURE); 331 ECerr(EC_F_ECKEY_PRIV_ENCODE, ERR_R_MALLOC_FAILURE);