projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
err/err.c: fix "wraparound" bug in ERR_set_error_data.
[openssl.git]
/
crypto
/
err
/
err.c
diff --git
a/crypto/err/err.c
b/crypto/err/err.c
index 07911e25b22b844fbcbf6342ff692ac39c6b771e..8d0da79f3015bec26f3621d8aa821bb2a587647b 100644
(file)
--- 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;
return;
i = es->top;
- if (i == 0)
- i = ERR_NUM_ERRORS - 1;
err_clear_data(es, i);
es->err_data[i] = data;
err_clear_data(es, i);
es->err_data[i] = data;