mirror of
https://github.com/nginx/nginx.git
synced 2026-06-27 04:12:05 +00:00
Split clients: check length when parsing configuration.
This commit is contained in:
parent
0ce62130cb
commit
275a35c2d0
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…
Add table
Add a link
Reference in a new issue