comparison src/http/ngx_http_core_module.c @ 3687:3fef0312aec8

allow setfib=0
author Igor Sysoev <igor@sysoev.ru>
date Tue, 13 Jul 2010 10:17:09 +0000
parents 4430d110293e
children 518eeff336c1
comparison
equal deleted inserted replaced
3686:47c1a9bff989 3687:3fef0312aec8
3438 3438
3439 #if (NGX_HAVE_SETFIB) 3439 #if (NGX_HAVE_SETFIB)
3440 if (ngx_strncmp(value[n].data, "setfib=", 7) == 0) { 3440 if (ngx_strncmp(value[n].data, "setfib=", 7) == 0) {
3441 lsopt.setfib = ngx_atoi(value[n].data + 7, value[n].len - 7); 3441 lsopt.setfib = ngx_atoi(value[n].data + 7, value[n].len - 7);
3442 3442
3443 if (lsopt.setfib == NGX_ERROR || lsopt.setfib == 0) { 3443 if (lsopt.setfib == NGX_ERROR) {
3444 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, 3444 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
3445 "invalid setfib \"%V\"", &value[n]); 3445 "invalid setfib \"%V\"", &value[n]);
3446 return NGX_CONF_ERROR; 3446 return NGX_CONF_ERROR;
3447 } 3447 }
3448 3448