Skip to content

Commit

Permalink
really clear the error queue here
Browse files Browse the repository at this point in the history
PR: 860
  • Loading branch information
Nils Larsch committed Apr 1, 2005
1 parent f3e427f commit 48c832b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ssl/ssl_rsa.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
}
Expand Down

0 comments on commit 48c832b

Please sign in to comment.