Mercurial > hg > nginx
diff src/http/modules/ngx_http_split_clients_module.c @ 5160:ab992c25770c stable-1.2
Merge of r5129: split clients configuration parsing.
Split clients: check length when parsing configuration.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Fri, 29 Mar 2013 17:59:41 +0000 |
parents | 05beaa2d87b3 |
children |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_split_clients_module.c Fri Mar 29 17:53:47 2013 +0000 +++ b/src/http/modules/ngx_http_split_clients_module.c Fri Mar 29 17:59:41 2013 +0000 @@ -218,7 +218,7 @@ 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; }