pull all errors

This commit is contained in:
Igor Sysoev 2008-01-25 14:56:37 +00:00
parent 749922f792
commit 929d881e1d
1 changed files with 3 additions and 1 deletions

View File

@ -1147,9 +1147,11 @@ ngx_ssl_connection_error(ngx_connection_t *c, int sslerr, ngx_err_t err,
static void
ngx_ssl_clear_error(ngx_log_t *log)
{
if (ERR_peek_error()) {
while (ERR_peek_error()) {
ngx_ssl_error(NGX_LOG_ALERT, log, 0, "ignoring stale global SSL error");
}
ERR_clear_error();
}