]> git.kaiwu.me - nginx.git/commitdiff
do not try to calculate procent sum if there was an error
authorIgor Sysoev <igor@sysoev.ru>
Tue, 8 Jun 2010 09:06:57 +0000 (09:06 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Tue, 8 Jun 2010 09:06:57 +0000 (09:06 +0000)
src/http/modules/ngx_http_split_clients_module.c

index 95286ae1872695f3c83bf06e80fe96363374e23d..c28b8f931c46c380327f331c208e0ff08dcb0cc6 100644 (file)
@@ -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;