summaryrefslogtreecommitdiffstats
path: root/crypto/pem
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>2002-02-28 14:05:13 +0000
committerBodo Möller <bodo@openssl.org>2002-02-28 14:05:13 +0000
commit16b0384bd2ae0761dc30b1881cda04a16052f999 (patch)
tree46f21b410b50ff0a3d2b405a9b80d8c766db88d9 /crypto/pem
parent87ebdd8a718adec7efc8ae7c31025db1d3959ac2 (diff)
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
Diffstat (limited to 'crypto/pem')
-rw-r--r--crypto/pem/pem_info.c2
1 files changed, 1 insertions, 1 deletions
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();