From: Dr. Stephen Henson Date: Sun, 22 Apr 2012 13:31:46 +0000 (+0000) Subject: correct error code X-Git-Tag: OpenSSL_0_9_8w~6 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=747c6ffda45c00d0bf5ec0d375b68896c02ee770;p=oweals%2Fopenssl.git correct error code --- diff --git a/crypto/buffer/buffer.c b/crypto/buffer/buffer.c index 3fa7229977..1f09cba061 100644 --- a/crypto/buffer/buffer.c +++ b/crypto/buffer/buffer.c @@ -156,7 +156,7 @@ int BUF_MEM_grow_clean(BUF_MEM *str, int len) /* This limit is sufficient to ensure (len+3)/3*4 < 2**31 */ if (len > LIMIT_BEFORE_EXPANSION) { - BUFerr(BUF_F_BUF_MEM_GROW,ERR_R_MALLOC_FAILURE); + BUFerr(BUF_F_BUF_MEM_GROW_CLEAN,ERR_R_MALLOC_FAILURE); return 0; } n=(len+3)/3*4;