From: Nils Larsch Date: Fri, 1 Apr 2005 17:49:33 +0000 (+0000) Subject: really clear the error queue here X-Git-Tag: OpenSSL_0_9_7g~14 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8298632d14b0674e75e7f0a50d9ef1651ecd9546;p=oweals%2Fopenssl.git really clear the error queue here PR: 860 --- diff --git a/ssl/ssl_rsa.c b/ssl/ssl_rsa.c index 330390519b..fb0bd4d045 100644 --- a/ssl/ssl_rsa.c +++ b/ssl/ssl_rsa.c @@ -804,7 +804,7 @@ int SSL_CTX_use_certificate_chain_file(SSL_CTX *ctx, const char *file) /* When the while loop ends, it's usually just EOF. */ 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(); + ERR_clear_error(); else ret = 0; /* some real error */ }