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
87ebdd8a71
commit
16b0384bd2
@ -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);
|
i=PEM_read_bio(bp,&name,&header,&data,&len);
|
||||||
if (i == 0)
|
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)
|
if (error == PEM_R_NO_START_LINE)
|
||||||
{
|
{
|
||||||
ERR_clear_error();
|
ERR_clear_error();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user