really clear the error queue here
authorNils Larsch <nils@openssl.org>
Fri, 1 Apr 2005 17:50:09 +0000 (17:50 +0000)
committerNils Larsch <nils@openssl.org>
Fri, 1 Apr 2005 17:50:09 +0000 (17:50 +0000)
PR: 860

ssl/ssl_rsa.c

index 72511d248bd0173e47967bfdbe455529f596de3a..d6da953269fdacf75f8b3897827f6f65bfcc2cb6 100644 (file)
@@ -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 */
                }