summaryrefslogtreecommitdiffstats
path: root/crypto/err
diff options
context:
space:
mode:
authorNils Larsch <nils@openssl.org>2006-02-08 19:16:33 +0000
committerNils Larsch <nils@openssl.org>2006-02-08 19:16:33 +0000
commit22d1087e16cff731d27c890f84757652d98303c1 (patch)
tree5a788aea06a917bd9913bc6d14546dc8e62ed576 /crypto/err
parent9f85fcefdce92ea8746937f20f9f2fbe384c2095 (diff)
backport recent changes from the cvs head
Diffstat (limited to 'crypto/err')
-rw-r--r--crypto/err/err.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/err/err.c b/crypto/err/err.c
index e084714383..72e3f3a26c 100644
--- a/crypto/err/err.c
+++ b/crypto/err/err.c
@@ -1108,7 +1108,7 @@ int ERR_pop_to_mark(void)
{
err_clear(es,es->top);
es->top-=1;
- if (es->top == -1) es->top=ERR_NUM_ERRORS;
+ if (es->top == -1) es->top=ERR_NUM_ERRORS-1;
}
if (es->bottom == es->top) return 0;