diff options
author | Maxim Dounin <mdounin@mdounin.ru> | 2013-03-29 17:59:41 +0000 |
---|---|---|
committer | Maxim Dounin <mdounin@mdounin.ru> | 2013-03-29 17:59:41 +0000 |
commit | c644b3d4c48c0f47cb88612cb02bd17c6b13495a (patch) | |
tree | eb42c2ae56ff4574b6ded1f47b40eb34196cf56f | |
parent | b6f9a758ea9e22cc1dafc7f0f7ad8039d28ee58e (diff) | |
download | nginx-c644b3d4c48c0f47cb88612cb02bd17c6b13495a.tar.gz |
Merge of r5129: split clients configuration parsing.
Split clients: check length when parsing configuration.
-rw-r--r-- | src/http/modules/ngx_http_split_clients_module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_split_clients_module.c b/src/http/modules/ngx_http_split_clients_module.c index 992f6de7c..2f92c9e1a 100644 --- a/src/http/modules/ngx_http_split_clients_module.c +++ b/src/http/modules/ngx_http_split_clients_module.c @@ -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; } |