aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/asn1/a_bitstr.c
diff options
context:
space:
mode:
authorRich Salz <rsalz@akamai.com>2015-12-16 16:51:12 -0500
committerRich Salz <rsalz@openssl.org>2015-12-22 07:32:51 -0500
commitc99de0533debc8a6ed08b47b414bdea19457eafd (patch)
treee91742edbd97c2c04c3dedfa00777eac6ca8f107 /crypto/asn1/a_bitstr.c
parentf5d97098a4c5d1c91887a3f2e0a31c1e20ca32e3 (diff)
downloadopenssl-c99de0533debc8a6ed08b47b414bdea19457eafd.tar.gz
Rename *_realloc_clean to *_clear_realloc
Just like *_clear_free routines. Previously undocumented, used a half-dozen times within OpenSSL source. Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'crypto/asn1/a_bitstr.c')
-rw-r--r--crypto/asn1/a_bitstr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/asn1/a_bitstr.c b/crypto/asn1/a_bitstr.c
index 5f7ae6a373..b4e71fd0f7 100644
--- a/crypto/asn1/a_bitstr.c
+++ b/crypto/asn1/a_bitstr.c
@@ -204,7 +204,7 @@ int ASN1_BIT_STRING_set_bit(ASN1_BIT_STRING *a, int n, int value)
if ((a->length < (w + 1)) || (a->data == NULL)) {
if (!value)
return (1); /* Don't need to set */
- c = OPENSSL_realloc_clean(a->data, a->length, w + 1);
+ c = OPENSSL_clear_realloc(a->data, a->length, w + 1);
if (c == NULL) {
ASN1err(ASN1_F_ASN1_BIT_STRING_SET_BIT, ERR_R_MALLOC_FAILURE);
return 0;