From: Bodo Möller Date: Thu, 28 Feb 2002 14:07:37 +0000 (+0000) Subject: use ERR_peek_last_error() instead of ERR_peek_error() X-Git-Tag: OpenSSL_0_9_6d~20^2~115 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9437fef8cc7fa6acdd0c7c85cf2a50f50d74ba54;p=oweals%2Fopenssl.git use ERR_peek_last_error() instead of ERR_peek_error() --- 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 */ }