提交 3e66ee9f 编写于 作者: D Dr. Stephen Henson

In by_file.c check last error for no start line, not first error.

上级 5b40d7dd
...@@ -150,7 +150,7 @@ int X509_load_cert_file(X509_LOOKUP *ctx, const char *file, int type) ...@@ -150,7 +150,7 @@ int X509_load_cert_file(X509_LOOKUP *ctx, const char *file, int type)
x=PEM_read_bio_X509_AUX(in,NULL,NULL,NULL); x=PEM_read_bio_X509_AUX(in,NULL,NULL,NULL);
if (x == NULL) if (x == NULL)
{ {
if ((ERR_GET_REASON(ERR_peek_error()) == if ((ERR_GET_REASON(ERR_peek_last_error()) ==
PEM_R_NO_START_LINE) && (count > 0)) PEM_R_NO_START_LINE) && (count > 0))
{ {
ERR_clear_error(); ERR_clear_error();
...@@ -217,7 +217,7 @@ int X509_load_crl_file(X509_LOOKUP *ctx, const char *file, int type) ...@@ -217,7 +217,7 @@ int X509_load_crl_file(X509_LOOKUP *ctx, const char *file, int type)
x=PEM_read_bio_X509_CRL(in,NULL,NULL,NULL); x=PEM_read_bio_X509_CRL(in,NULL,NULL,NULL);
if (x == NULL) if (x == NULL)
{ {
if ((ERR_GET_REASON(ERR_peek_error()) == if ((ERR_GET_REASON(ERR_peek_last_error()) ==
PEM_R_NO_START_LINE) && (count > 0)) PEM_R_NO_START_LINE) && (count > 0))
{ {
ERR_clear_error(); ERR_clear_error();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册