From: Dr. Stephen Henson Date: Sat, 4 Dec 2004 21:25:51 +0000 (+0000) Subject: In by_file.c check last error for no start line, not first error. X-Git-Tag: BEN_FIPS_TEST_6~17^2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3e66ee9f01056da4c5efd997e369768762089455;p=thirdparty%2Fopenssl.git In by_file.c check last error for no start line, not first error. --- diff --git a/crypto/x509/by_file.c b/crypto/x509/by_file.c index b4b04183d07..a5e0d4aefa1 100644 --- a/crypto/x509/by_file.c +++ b/crypto/x509/by_file.c @@ -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); 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)) { ERR_clear_error(); @@ -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); 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)) { ERR_clear_error();