Commit 16b0384b authored by Bodo Möller's avatar Bodo Möller
Browse files

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
parent 87ebdd8a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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();