From 16b0384bd2ae0761dc30b1881cda04a16052f999 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bodo=20M=C3=B6ller?= Date: Thu, 28 Feb 2002 14:05:13 +0000 Subject: [PATCH] use ERR_peek_last_error() instead of ERR_peek_error() to ignore any other errors that may be left in the error queue Submitted by: Jeffrey Altman --- crypto/pem/pem_info.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/pem/pem_info.c b/crypto/pem/pem_info.c index 7fc5e5c4c0..dba1c430da 100644 --- a/crypto/pem/pem_info.c +++ b/crypto/pem/pem_info.c @@ -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(); -- 2.25.1