summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ecdh/ech_ossl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/ecdh/ech_ossl.c')
-rw-r--r--src/lib/libcrypto/ecdh/ech_ossl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/ecdh/ech_ossl.c b/src/lib/libcrypto/ecdh/ech_ossl.c
index 4a30628fbc..a63eb4922d 100644
--- a/src/lib/libcrypto/ecdh/ech_ossl.c
+++ b/src/lib/libcrypto/ecdh/ech_ossl.c
@@ -175,7 +175,7 @@ static int ecdh_compute_key(void *out, size_t outlen, const EC_POINT *pub_key,
175 ECDHerr(ECDH_F_ECDH_COMPUTE_KEY,ERR_R_INTERNAL_ERROR); 175 ECDHerr(ECDH_F_ECDH_COMPUTE_KEY,ERR_R_INTERNAL_ERROR);
176 goto err; 176 goto err;
177 } 177 }
178 if ((buf = OPENSSL_malloc(buflen)) == NULL) 178 if ((buf = malloc(buflen)) == NULL)
179 { 179 {
180 ECDHerr(ECDH_F_ECDH_COMPUTE_KEY,ERR_R_MALLOC_FAILURE); 180 ECDHerr(ECDH_F_ECDH_COMPUTE_KEY,ERR_R_MALLOC_FAILURE);
181 goto err; 181 goto err;
@@ -210,6 +210,6 @@ err:
210 if (tmp) EC_POINT_free(tmp); 210 if (tmp) EC_POINT_free(tmp);
211 if (ctx) BN_CTX_end(ctx); 211 if (ctx) BN_CTX_end(ctx);
212 if (ctx) BN_CTX_free(ctx); 212 if (ctx) BN_CTX_free(ctx);
213 if (buf) OPENSSL_free(buf); 213 if (buf) free(buf);
214 return(ret); 214 return(ret);
215 } 215 }