提交 16b0384b 编写于 作者: B Bodo Möller

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
上级 87ebdd8a
...@@ -111,7 +111,7 @@ STACK_OF(X509_INFO) *PEM_X509_INFO_read_bio(BIO *bp, STACK_OF(X509_INFO) *sk, pe ...@@ -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();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册