From 04944c154c41b9b103787eef199e34bdc92275fc Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Tue, 8 Jun 2010 09:06:57 +0000 Subject: [PATCH] do not try to calculate procent sum if there was an error --- src/http/modules/ngx_http_split_clients_module.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/http/modules/ngx_http_split_clients_module.c b/src/http/modules/ngx_http_split_clients_module.c index 95286ae18..c28b8f931 100644 --- a/src/http/modules/ngx_http_split_clients_module.c +++ b/src/http/modules/ngx_http_split_clients_module.c @@ -163,6 +163,10 @@ ngx_conf_split_clients_block(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) *cf = save; + if (rv != NGX_CONF_OK) { + return rv; + } + sum = 0; last = 0; part = ctx->parts.elts;