mirror of
https://github.com/nginx/nginx.git
synced 2024-12-20 14:13:33 -06:00
Split clients: check length when parsing configuration.
This commit is contained in:
parent
0ce62130cb
commit
275a35c2d0
@ -218,7 +218,7 @@ ngx_http_split_clients(ngx_conf_t *cf, ngx_command_t *dummy, void *conf)
|
|||||||
part->percent = 0;
|
part->percent = 0;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
if (value[0].data[value[0].len - 1] != '%') {
|
if (value[0].len == 0 || value[0].data[value[0].len - 1] != '%') {
|
||||||
goto invalid;
|
goto invalid;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user