mirror of
https://github.com/nginx/nginx.git
synced 2026-06-27 20:31:58 +00:00
do not try to calculate procent sum if there was an error
This commit is contained in:
parent
27b54fda94
commit
cd04da475d
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue