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
This commit is contained in:
parent
1ec1d17e16
commit
98fa4fce09
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user