diff options
author | Bodo Möller <bodo@openssl.org> | 2002-02-28 14:05:13 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2002-02-28 14:05:13 +0000 |
commit | 16b0384bd2ae0761dc30b1881cda04a16052f999 (patch) | |
tree | 46f21b410b50ff0a3d2b405a9b80d8c766db88d9 /crypto/pem | |
parent | 87ebdd8a718adec7efc8ae7c31025db1d3959ac2 (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.c | 2 |
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(); |