From: Bodo Möller Date: Thu, 28 Feb 2002 14:03:41 +0000 (+0000) Subject: use ERR_peek_last_error() instead of ERR_peek_error() to ignore X-Git-Tag: OpenSSL_0_9_7-beta1~183 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=98fa4fce098f2e40ed6ccbc03782bfb2466fb4c7;p=oweals%2Fopenssl.git 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 4a1b93f808..453fa2db34 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();