diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2004-12-04 21:25:51 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2004-12-04 21:25:51 +0000 |
commit | 3e66ee9f01056da4c5efd997e369768762089455 (patch) | |
tree | 13de138764bc538343c1f66ef8f67552f64957ca /crypto/x509/by_file.c | |
parent | 5b40d7dd9784fe2914095717a591fd59a3f9d7e5 (diff) | |
download | openssl-3e66ee9f01056da4c5efd997e369768762089455.tar.gz |
In by_file.c check last error for no start line, not first error.
Diffstat (limited to 'crypto/x509/by_file.c')
-rw-r--r-- | crypto/x509/by_file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/x509/by_file.c b/crypto/x509/by_file.c index b4b04183d0..a5e0d4aefa 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(); |