diff options
Diffstat (limited to 'crypto/buffer')
-rw-r--r-- | crypto/buffer/buf_err.c | 1 | ||||
-rw-r--r-- | crypto/buffer/buffer.c | 2 | ||||
-rw-r--r-- | crypto/buffer/buffer.h | 1 |
3 files changed, 3 insertions, 1 deletions
diff --git a/crypto/buffer/buf_err.c b/crypto/buffer/buf_err.c index b433f5c814..8fc67d3542 100644 --- a/crypto/buffer/buf_err.c +++ b/crypto/buffer/buf_err.c @@ -72,6 +72,7 @@ static ERR_STRING_DATA BUF_str_functs[]= { {ERR_FUNC(BUF_F_BUF_MEMDUP), "BUF_memdup"}, {ERR_FUNC(BUF_F_BUF_MEM_GROW), "BUF_MEM_grow"}, +{ERR_FUNC(BUF_F_BUF_MEM_GROW_CLEAN), "BUF_MEM_grow_clean"}, {ERR_FUNC(BUF_F_BUF_MEM_NEW), "BUF_MEM_new"}, {ERR_FUNC(BUF_F_BUF_STRDUP), "BUF_strdup"}, {ERR_FUNC(BUF_F_BUF_STRNDUP), "BUF_strndup"}, diff --git a/crypto/buffer/buffer.c b/crypto/buffer/buffer.c index 03ebf23a14..3bf03c7eff 100644 --- a/crypto/buffer/buffer.c +++ b/crypto/buffer/buffer.c @@ -149,7 +149,7 @@ int BUF_MEM_grow_clean(BUF_MEM *str, int len) ret=OPENSSL_realloc_clean(str->data,str->max,n); if (ret == NULL) { - BUFerr(BUF_F_BUF_MEM_GROW,ERR_R_MALLOC_FAILURE); + BUFerr(BUF_F_BUF_MEM_GROW_CLEAN,ERR_R_MALLOC_FAILURE); len=0; } else diff --git a/crypto/buffer/buffer.h b/crypto/buffer/buffer.h index 4b8eb7119d..1db9607450 100644 --- a/crypto/buffer/buffer.h +++ b/crypto/buffer/buffer.h @@ -105,6 +105,7 @@ void ERR_load_BUF_strings(void); /* Function codes. */ #define BUF_F_BUF_MEMDUP 103 #define BUF_F_BUF_MEM_GROW 100 +#define BUF_F_BUF_MEM_GROW_CLEAN 105 #define BUF_F_BUF_MEM_NEW 101 #define BUF_F_BUF_STRDUP 102 #define BUF_F_BUF_STRNDUP 104 |