Mercurial > hg > nginx
changeset 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 |
files | src/http/ngx_http_core_module.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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; } }