# HG changeset patch # User Igor Sysoev # Date 1286538125 0 # Node ID 5ceb0f62423322aaa19094c38e33fb45dc1b0156 # Parent a08e8b3832aec61d91b04e6cbaad42ebe7004552 fix testing, the bug has been introduced in r3218 diff -r a08e8b3832ae -r 5ceb0f624233 src/http/ngx_http_core_module.c --- a/src/http/ngx_http_core_module.c Mon Oct 04 15:03:00 2010 +0000 +++ b/src/http/ngx_http_core_module.c Fri Oct 08 11:42:05 2010 +0000 @@ -3005,8 +3005,8 @@ (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; } }