summaryrefslogtreecommitdiff
path: root/lib/libcrypto/rsa
diff options
context:
space:
mode:
authorBob Beck <beck@cvs.openbsd.org>2014-05-22 21:56:03 +0000
committerBob Beck <beck@cvs.openbsd.org>2014-05-22 21:56:03 +0000
commit79d995efcd8c701059bb4cc13607a2e4d90f1f0b (patch)
tree060469135f3458944161bad2dfe0fc07724ca996 /lib/libcrypto/rsa
parente4cd58f507fd46d613ab7dfd04bff18eeb5b8b95 (diff)
Convert OPENSSL_malloc stuff back to intrinsics, a few were missed
as new stuff was brought in. ok miod@
Diffstat (limited to 'lib/libcrypto/rsa')
-rw-r--r--lib/libcrypto/rsa/rsa_lib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libcrypto/rsa/rsa_lib.c b/lib/libcrypto/rsa/rsa_lib.c
index a618d70f92c..1ea5e7bc64e 100644
--- a/lib/libcrypto/rsa/rsa_lib.c
+++ b/lib/libcrypto/rsa/rsa_lib.c
@@ -229,7 +229,7 @@ void RSA_free(RSA *r)
if (r->iqmp != NULL) BN_clear_free(r->iqmp);
if (r->blinding != NULL) BN_BLINDING_free(r->blinding);
if (r->mt_blinding != NULL) BN_BLINDING_free(r->mt_blinding);
- if (r->bignum_data != NULL) OPENSSL_free_locked(r->bignum_data);
+ free(r->bignum_data);
free(r);
}
@@ -275,7 +275,7 @@ int RSA_memory_lock(RSA *r)
j=1;
for (i=0; i<6; i++)
j+= (*t[i])->top;
- if ((p=OPENSSL_malloc_locked((off+j)*sizeof(BN_ULONG))) == NULL)
+ if ((p=reallocarray(NULL, (off+j), sizeof(BN_ULONG))) == NULL)
{
RSAerr(RSA_F_RSA_MEMORY_LOCK,ERR_R_MALLOC_FAILURE);
return(0);