diff options
author | Igor Sysoev <igor@sysoev.ru> | 2010-10-08 11:42:05 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2010-10-08 11:42:05 +0000 |
commit | 21dba41f5bad8762a21617f9b55d7e415127bf8d (patch) | |
tree | 73970926921b8f7bea2f4765b957654e12d16d6b /src | |
parent | 5fffff997f30e5c56dd95309bb3615f798f8c7c6 (diff) | |
download | nginx-21dba41f5bad8762a21617f9b55d7e415127bf8d.tar.gz nginx-21dba41f5bad8762a21617f9b55d7e415127bf8d.zip |
fix testing, the bug has been introduced in r3218
Diffstat (limited to 'src')
-rw-r--r-- | src/http/ngx_http_core_module.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } } |