From 48c832b6b7b7c03a8a8ac368c6540ab1034e46d1 Mon Sep 17 00:00:00 2001 From: Nils Larsch Date: Fri, 1 Apr 2005 17:50:09 +0000 Subject: [PATCH] really clear the error queue here PR: 860 --- ssl/ssl_rsa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssl/ssl_rsa.c b/ssl/ssl_rsa.c index 72511d248b..d6da953269 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 */ } -- 2.25.1