diff options
author | Igor Sysoev <igor@sysoev.ru> | 2010-06-08 09:06:57 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2010-06-08 09:06:57 +0000 |
commit | cd04da475d3b2ef2d7ce5bc4e6c9bfd5a3bdb016 (patch) | |
tree | 2ece96743b5dd3e94203336060bd79deb36ba532 /src/http/modules/ngx_http_split_clients_module.c | |
parent | 27b54fda9472858eb419039eec3ea0154a57ac7b (diff) | |
download | nginx-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.c | 4 |
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; |