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:26:48 +0200 |
commit | 5dd8e67a7b9ede8d90744660abbb40adf07890aa (patch) | |
tree | c55a5caaeb74dfa651c2b7e3b9ffe975b281b57c /crypto/err | |
parent | 5c26dd5b70e7be158dade9da9d75af258c7795dc (diff) |
err/err.c: fix "wraparound" bug in ERR_set_error_data.
Reviewed-by: Rich Salz <rsalz@openssl.org>
(cherry picked from commit d3d880ce01cfaf0091f46a2f6b5bd146d47a93e7)
Diffstat (limited to 'crypto/err')
-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 57b9576ea6..84eabc1772 100644 --- a/crypto/err/err.c +++ b/crypto/err/err.c @@ -702,8 +702,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; |