]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
use ERR_peek_last_error() instead of ERR_peek_error() to ignore
authorBodo Möller <bodo@openssl.org>
Thu, 28 Feb 2002 14:05:13 +0000 (14:05 +0000)
committerBodo Möller <bodo@openssl.org>
Thu, 28 Feb 2002 14:05:13 +0000 (14:05 +0000)
any other errors that may be left in the error queue

Submitted by: Jeffrey Altman

crypto/pem/pem_info.c

index 7fc5e5c4c0c83e9c24d7006a9410218688a741cd..dba1c430da1ca9e69c60c586f76a60bb05045c60 100644 (file)
@@ -111,7 +111,7 @@ STACK_OF(X509_INFO) *PEM_X509_INFO_read_bio(BIO *bp, STACK_OF(X509_INFO) *sk, pe
                i=PEM_read_bio(bp,&name,&header,&data,&len);
                if (i == 0)
                        {
-                       error=ERR_GET_REASON(ERR_peek_error());
+                       error=ERR_GET_REASON(ERR_peek_last_error());
                        if (error == PEM_R_NO_START_LINE)
                                {
                                ERR_clear_error();