diff options
author | Andy Polyakov <appro@openssl.org> | 2017-08-16 23:06:57 +0200 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2017-08-18 09:24:44 +0200 |
commit | d3d880ce01cfaf0091f46a2f6b5bd146d47a93e7 (patch) | |
tree | 520ffc53b94e2bf457d8d4906b1d0e7816b0ff9e /crypto | |
parent | 9ef73a6fd9a43a79783d2c68339c96532c3209f9 (diff) |
err/err.c: fix "wraparound" bug in ERR_set_error_data.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/err/err.c | 2 |
1 files changed, 0 insertions, 2 deletions
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; |