changeset 3607:8bff43217171

do not try to calculate procent sum if there was an error
author Igor Sysoev <igor@sysoev.ru>
date Tue, 08 Jun 2010 09:06:57 +0000
parents 39535a91776d
children 8b55806ceb97
files src/http/modules/ngx_http_split_clients_module.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;