diff options
author | Bodo Möller <bodo@openssl.org> | 2002-02-28 14:10:13 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2002-02-28 14:10:13 +0000 |
commit | 2be9b881359655e28f21778d4e7f44ce4c8dcd22 (patch) | |
tree | 562e6b4acffe9986f72400c8071f8113b003fc47 /ssl/ssl_rsa.c | |
parent | 98fa4fce098f2e40ed6ccbc03782bfb2466fb4c7 (diff) |
use ERR_peek_last_error() instead of ERR_peek_error()
Diffstat (limited to 'ssl/ssl_rsa.c')
-rw-r--r-- | ssl/ssl_rsa.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ssl/ssl_rsa.c b/ssl/ssl_rsa.c index b15dd506c9..1cf8e20934 100644 --- a/ssl/ssl_rsa.c +++ b/ssl/ssl_rsa.c @@ -800,9 +800,9 @@ int SSL_CTX_use_certificate_chain_file(SSL_CTX *ctx, const char *file) * by SSL_CTX_use_certificate). */ } /* When the while loop ends, it's usually just EOF. */ - err = ERR_peek_error(); + err = ERR_peek_last_error(); if (ERR_GET_LIB(err) == ERR_LIB_PEM && ERR_GET_REASON(err) == PEM_R_NO_START_LINE) - (void) ERR_get_error(); + (void)ERR_get_error(); else ret = 0; /* some real error */ } |