]> git.kaiwu.me - nginx.git/commitdiff
allow setfib=0
authorIgor Sysoev <igor@sysoev.ru>
Tue, 13 Jul 2010 10:17:09 +0000 (10:17 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Tue, 13 Jul 2010 10:17:09 +0000 (10:17 +0000)
src/http/ngx_http_core_module.c

index 0296d00bf266985f3530084bcac5b858b9c8194a..b4b86a755f15e75f226db86f2f63d34d9353189c 100644 (file)
@@ -3440,7 +3440,7 @@ ngx_http_core_listen(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
         if (ngx_strncmp(value[n].data, "setfib=", 7) == 0) {
             lsopt.setfib = ngx_atoi(value[n].data + 7, value[n].len - 7);
 
-            if (lsopt.setfib == NGX_ERROR || lsopt.setfib == 0) {
+            if (lsopt.setfib == NGX_ERROR) {
                 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
                                    "invalid setfib \"%V\"", &value[n]);
                 return NGX_CONF_ERROR;