return NGX_ERROR;
}
- if (lsopt->set && addr[i].opt.set) {
- ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
+ if (lsopt->set) {
+
+ if (addr[i].opt.set) {
+ ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
"a duplicate listen options for %s", addr[i].opt.addr);
- return NGX_ERROR;
+ return NGX_ERROR;
+ }
+
+ addr[i].opt = *lsopt;
}
/* check the duplicate "default" server for this address:port */
return NGX_ERROR;
}
- addr[i].opt = *lsopt;
addr[i].default_server = cscf;
}