# HG changeset patch # User Igor Sysoev # Date 1286538125 0 # Node ID 5ceb0f62423322aaa19094c38e33fb45dc1b0156 # Parent a08e8b3832aec61d91b04e6cbaad42ebe7004552 fix testing, the bug has been introduced in r3218 diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c --- a/src/http/ngx_http_core_module.c +++ b/src/http/ngx_http_core_module.c @@ -3005,8 +3005,8 @@ ngx_http_core_merge_srv_conf(ngx_conf_t (void) ngx_sock_ntop(&lsopt.u.sockaddr, lsopt.addr, NGX_SOCKADDR_STRLEN, 1); - if (ngx_http_add_listen(cf, conf, &lsopt) == NGX_OK) { - return NGX_CONF_OK; + if (ngx_http_add_listen(cf, conf, &lsopt) != NGX_OK) { + return NGX_CONF_ERROR; } }