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>
This commit is contained in:
@@ -179,7 +179,7 @@ size_t BUF_MEM_grow_clean(BUF_MEM *str, size_t len)
|
||||
if ((str->flags & BUF_MEM_FLAG_SECURE))
|
||||
ret = sec_alloc_realloc(str, n);
|
||||
else
|
||||
ret = OPENSSL_realloc_clean(str->data, str->max, n);
|
||||
ret = OPENSSL_clear_realloc(str->data, str->max, n);
|
||||
if (ret == NULL) {
|
||||
BUFerr(BUF_F_BUF_MEM_GROW_CLEAN, ERR_R_MALLOC_FAILURE);
|
||||
len = 0;
|
||||
|
||||
Reference in New Issue
Block a user