pull all errors

This commit is contained in:
Igor Sysoev 2008-01-25 14:56:37 +00:00
parent 16315761db
commit c783c35b5f

View File

@ -1147,9 +1147,11 @@ ngx_ssl_connection_error(ngx_connection_t *c, int sslerr, ngx_err_t err,
static void static void
ngx_ssl_clear_error(ngx_log_t *log) 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"); ngx_ssl_error(NGX_LOG_ALERT, log, 0, "ignoring stale global SSL error");
} }
ERR_clear_error();
} }