From: Andy Polyakov Date: Wed, 16 Aug 2017 21:06:57 +0000 (+0200) Subject: err/err.c: fix "wraparound" bug in ERR_set_error_data. X-Git-Tag: OpenSSL_1_1_1-pre1~825 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d3d880ce01cfaf0091f46a2f6b5bd146d47a93e7;p=oweals%2Fopenssl.git err/err.c: fix "wraparound" bug in ERR_set_error_data. Reviewed-by: Rich Salz --- diff --git a/crypto/err/err.c b/crypto/err/err.c index 07911e25b2..8d0da79f30 100644 --- a/crypto/err/err.c +++ b/crypto/err/err.c @@ -730,8 +730,6 @@ void ERR_set_error_data(char *data, int flags) return; i = es->top; - if (i == 0) - i = ERR_NUM_ERRORS - 1; err_clear_data(es, i); es->err_data[i] = data;