diff options
author | Richard Levitte <levitte@openssl.org> | 2002-02-14 13:45:26 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2002-02-14 13:45:26 +0000 |
commit | 016029c69f2c7f0a1a6772609dcf459832e7db0c (patch) | |
tree | 758b0b78e5bb59a6e99d2765cd7fcee201bfe57b /crypto/err/err.c | |
parent | 516b84828627948e494ec825047783334c6d9c79 (diff) | |
download | openssl-new-016029c69f2c7f0a1a6772609dcf459832e7db0c.tar.gz |
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.
Diffstat (limited to 'crypto/err/err.c')
-rw-r--r-- | crypto/err/err.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/err/err.c b/crypto/err/err.c index 3163163f71..04773d65a6 100644 --- 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 */ |