summaryrefslogtreecommitdiffstats
path: root/crypto/err
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2017-08-16 23:06:57 +0200
committerAndy Polyakov <appro@openssl.org>2017-08-18 09:27:06 +0200
commit3281f1eb65008c3c6176418f6c6f83b29d1e8482 (patch)
tree0a90120e5f5c578792b18f31dde7b1c36bf90de2 /crypto/err
parente3348cfe15ac556278d0f30f7e17749e1bf1856d (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.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/crypto/err/err.c b/crypto/err/err.c
index 03d407cab8..cfe0e8083f 100644
--- a/crypto/err/err.c
+++ b/crypto/err/err.c
@@ -1075,8 +1075,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;