projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
516b848
)
For some reason, getting the topmost error was done the same way as
author
Richard Levitte
<levitte@openssl.org>
Thu, 14 Feb 2002 13:45:26 +0000
(13:45 +0000)
committer
Richard Levitte
<levitte@openssl.org>
Thu, 14 Feb 2002 13:45:26 +0000
(13:45 +0000)
getting the bottommost one. I hope I understood correctly how this
should be done. It seems to work when running evp_test in an
environment where it can't find openssl.cnf.
crypto/err/err.c
patch
|
blob
|
history
diff --git
a/crypto/err/err.c
b/crypto/err/err.c
index 3163163f7177640aac03eee4f5beca500d6c532a..04773d65a69fd87cdf84c21f83cb11d75c2f0599 100644
(file)
--- a/
crypto/err/err.c
+++ b/
crypto/err/err.c
@@
-720,7
+720,7
@@
static unsigned long get_error_values(int inc, int top, const char **file, int *
if (es->bottom == es->top) return 0;
if (top)
- i=
(es->bottom+1)%ERR_NUM_ERRORS;
/* last error */
+ i=
es->top;
/* last error */
else
i=(es->bottom+1)%ERR_NUM_ERRORS; /* first error */