Merge of r5129: split clients configuration parsing.

Split clients: check length when parsing configuration.
This commit is contained in:
Maxim Dounin 2013-03-29 17:59:41 +00:00
parent 76f856f25c
commit 2d197a9d39
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}