comparison src/http/ngx_http_core_module.c @ 3774:5ceb0f624233

fix testing, the bug has been introduced in r3218
author Igor Sysoev <igor@sysoev.ru>
date Fri, 08 Oct 2010 11:42:05 +0000
parents a08e8b3832ae
children 2902fc8487ae
comparison
equal deleted inserted replaced
3773:a08e8b3832ae 3774:5ceb0f624233
3003 lsopt.wildcard = 1; 3003 lsopt.wildcard = 1;
3004 3004
3005 (void) ngx_sock_ntop(&lsopt.u.sockaddr, lsopt.addr, 3005 (void) ngx_sock_ntop(&lsopt.u.sockaddr, lsopt.addr,
3006 NGX_SOCKADDR_STRLEN, 1); 3006 NGX_SOCKADDR_STRLEN, 1);
3007 3007
3008 if (ngx_http_add_listen(cf, conf, &lsopt) == NGX_OK) { 3008 if (ngx_http_add_listen(cf, conf, &lsopt) != NGX_OK) {
3009 return NGX_CONF_OK; 3009 return NGX_CONF_ERROR;
3010 } 3010 }
3011 } 3011 }
3012 3012
3013 if (conf->server_name.data == NULL) { 3013 if (conf->server_name.data == NULL) {
3014 ngx_str_set(&conf->server_name, ""); 3014 ngx_str_set(&conf->server_name, "");