mirror of
https://github.com/openssl/openssl.git
synced 2024-11-29 04:55:11 +08:00
For some reason, getting the topmost error was done the same way as
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.
This commit is contained in:
parent
516b848286
commit
016029c69f
@ -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 */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user