aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_core_module.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2004-09-14 15:55:24 +0000
committerIgor Sysoev <igor@sysoev.ru>2004-09-14 15:55:24 +0000
commite2ff3ea920ba6bc3690a333abdaa2e40656f933a (patch)
tree5e9d8e784f041e7fb29cda6c87b7119ccd6d2817 /src/http/ngx_http_core_module.c
parent562626ae6cda8c90121bec3362232e87899d6ce6 (diff)
downloadnginx-e2ff3ea920ba6bc3690a333abdaa2e40656f933a.tar.gz
nginx-e2ff3ea920ba6bc3690a333abdaa2e40656f933a.zip
nginx-0.0.10-2004-09-14-19:55:24 import
Diffstat (limited to 'src/http/ngx_http_core_module.c')
-rw-r--r--src/http/ngx_http_core_module.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c
index 6c4f819b9..f00ae658c 100644
--- a/src/http/ngx_http_core_module.c
+++ b/src/http/ngx_http_core_module.c
@@ -1479,10 +1479,14 @@ static char *ngx_set_listen(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
ngx_str_t *args;
ngx_http_listen_t *ls;
- /* TODO: check duplicate 'listen' directives,
- add resolved name to server names ??? */
+ /*
+ * TODO: check duplicate 'listen' directives,
+ * add resolved name to server names ???
+ */
- ngx_test_null(ls, ngx_push_array(&scf->listen), NGX_CONF_ERROR);
+ if (!(ls = ngx_array_push(&scf->listen))) {
+ return NGX_CONF_ERROR;
+ }
/* AF_INET only */