]> git.kaiwu.me - nginx.git/commitdiff
pull all errors
authorIgor Sysoev <igor@sysoev.ru>
Fri, 25 Jan 2008 14:56:37 +0000 (14:56 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Fri, 25 Jan 2008 14:56:37 +0000 (14:56 +0000)
src/event/ngx_event_openssl.c

index f2504eff6ce459bb37cf34781cbb03f5540cc696..6de77429bbc3fa27620b6b243a2a0789e0fb1af9 100644 (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();
 }