From: Igor Sysoev Date: Fri, 8 Oct 2010 11:42:05 +0000 (+0000) Subject: fix testing, the bug has been introduced in r3218 X-Git-Tag: release-0.8.53~8 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=21dba41f5bad8762a21617f9b55d7e415127bf8d;p=nginx.git 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 index f6d22482f..25adec28f 100644 --- 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 *cf, void *parent, void *child) (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; } }