Merge of r5129: split clients configuration parsing.
Split clients: check length when parsing configuration.
This commit is contained in:
parent
76f856f25c
commit
2d197a9d39
1 changed files with 1 additions and 1 deletions
|
@ -218,7 +218,7 @@ ngx_http_split_clients(ngx_conf_t *cf, ngx_command_t *dummy, void *conf)
|
|||
part->percent = 0;
|
||||
|
||||
} else {
|
||||
if (value[0].data[value[0].len - 1] != '%') {
|
||||
if (value[0].len == 0 || value[0].data[value[0].len - 1] != '%') {
|
||||
goto invalid;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue