From: Bodo Möller Date: Thu, 28 Feb 2002 14:05:13 +0000 (+0000) Subject: use ERR_peek_last_error() instead of ERR_peek_error() to ignore X-Git-Tag: OpenSSL-engine-0_9_6d~4^2~116 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=16b0384bd2ae0761dc30b1881cda04a16052f999;p=openssl 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 --- 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();