mirror of
https://github.com/openssl/openssl.git
synced 2024-11-24 02:23:51 +08:00
use ERR_peek_last_error() instead of ERR_peek_error()
This commit is contained in:
parent
16b0384bd2
commit
9437fef8cc
@ -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 */
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user