aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/ngx_http_split_clients_module.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2010-06-08 09:06:57 +0000
committerIgor Sysoev <igor@sysoev.ru>2010-06-08 09:06:57 +0000
commitcd04da475d3b2ef2d7ce5bc4e6c9bfd5a3bdb016 (patch)
tree2ece96743b5dd3e94203336060bd79deb36ba532 /src/http/modules/ngx_http_split_clients_module.c
parent27b54fda9472858eb419039eec3ea0154a57ac7b (diff)
downloadnginx-cd04da475d3b2ef2d7ce5bc4e6c9bfd5a3bdb016.tar.gz
nginx-cd04da475d3b2ef2d7ce5bc4e6c9bfd5a3bdb016.zip
do not try to calculate procent sum if there was an error
Diffstat (limited to 'src/http/modules/ngx_http_split_clients_module.c')
-rw-r--r--src/http/modules/ngx_http_split_clients_module.c4
1 files changed, 4 insertions, 0 deletions
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;