]> git.kaiwu.me - nginx.git/commitdiff
small fix
authorIgor Sysoev <igor@sysoev.ru>
Thu, 17 Apr 2008 14:32:11 +0000 (14:32 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Thu, 17 Apr 2008 14:32:11 +0000 (14:32 +0000)
src/http/ngx_http_upstream.c

index e0aefed6f3051bdccb1845a890ce6fec17fe080d..9ec861cfa232f8415203c9be148feff37b77642e 100644 (file)
@@ -3205,7 +3205,7 @@ ngx_http_upstream_server(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
 
             fail_timeout = ngx_parse_time(&s, 1);
 
-            if (fail_timeout < 0) {
+            if (fail_timeout == NGX_ERROR) {
                 goto invalid;
             }