# HG changeset patch # User Igor Sysoev # Date 1275988017 0 # Node ID 8bff4321717165980e5aad36a1377f7ff8598a8d # Parent 39535a91776d1ca18b0b32c4abed1a7932df36d4 do not try to calculate procent sum if there was an error diff --git a/src/http/modules/ngx_http_split_clients_module.c b/src/http/modules/ngx_http_split_clients_module.c --- 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 = save; + if (rv != NGX_CONF_OK) { + return rv; + } + sum = 0; last = 0; part = ctx->parts.elts;