changeset 1973:54e4d1b6c183

small fix
author Igor Sysoev <igor@sysoev.ru>
date Thu, 17 Apr 2008 14:32:11 +0000
parents 9d2bdbda4ee3
children f32cc6df6bd6
files src/http/ngx_http_upstream.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/http/ngx_http_upstream.c
+++ b/src/http/ngx_http_upstream.c
@@ -3205,7 +3205,7 @@ ngx_http_upstream_server(ngx_conf_t *cf,
 
             fail_timeout = ngx_parse_time(&s, 1);
 
-            if (fail_timeout < 0) {
+            if (fail_timeout == NGX_ERROR) {
                 goto invalid;
             }