comparison src/http/ngx_http_core_module.c @ 5455:8f2c69418045

Fixed "setfib=" on non-first listening socket.
author Maxim Dounin <mdounin@mdounin.ru>
date Tue, 03 Dec 2013 21:44:08 +0400
parents fcecb9c6a057
children 692afcea9d0d
comparison
equal deleted inserted replaced
5454:359f49a84f87 5455:8f2c69418045
4013 } 4013 }
4014 4014
4015 #if (NGX_HAVE_SETFIB) 4015 #if (NGX_HAVE_SETFIB)
4016 if (ngx_strncmp(value[n].data, "setfib=", 7) == 0) { 4016 if (ngx_strncmp(value[n].data, "setfib=", 7) == 0) {
4017 lsopt.setfib = ngx_atoi(value[n].data + 7, value[n].len - 7); 4017 lsopt.setfib = ngx_atoi(value[n].data + 7, value[n].len - 7);
4018 lsopt.set = 1;
4019 lsopt.bind = 1;
4018 4020
4019 if (lsopt.setfib == NGX_ERROR) { 4021 if (lsopt.setfib == NGX_ERROR) {
4020 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, 4022 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
4021 "invalid setfib \"%V\"", &value[n]); 4023 "invalid setfib \"%V\"", &value[n]);
4022 return NGX_CONF_ERROR; 4024 return NGX_CONF_ERROR;