Mercurial > hg > nginx-vendor-current
comparison src/http/modules/ngx_http_split_clients_module.c @ 672:f41d4b305d22 NGINX_1_2_0
nginx 1.2.0
*) Bugfix: a segmentation fault might occur in a worker process if the
"try_files" directive was used; the bug had appeared in 1.1.19.
*) Bugfix: response might be truncated if there were more than IOV_MAX
buffers used.
*) Bugfix: in the "crop" parameter of the "image_filter" directive.
Thanks to Maxim Bublis.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Mon, 23 Apr 2012 00:00:00 +0400 |
parents | 9fbf3ad94cbf |
children | bfa81a0490a2 |
comparison
equal
deleted
inserted
replaced
671:47cb3497fbab | 672:f41d4b305d22 |
---|---|
175 | 175 |
176 for (i = 0; i < ctx->parts.nelts; i++) { | 176 for (i = 0; i < ctx->parts.nelts; i++) { |
177 sum = part[i].percent ? sum + part[i].percent : 10000; | 177 sum = part[i].percent ? sum + part[i].percent : 10000; |
178 if (sum > 10000) { | 178 if (sum > 10000) { |
179 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, | 179 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, |
180 "percent sum is more than 100%%"); | 180 "percent total is greater than 100%%"); |
181 return NGX_CONF_ERROR; | 181 return NGX_CONF_ERROR; |
182 } | 182 } |
183 | 183 |
184 if (part[i].percent) { | 184 if (part[i].percent) { |
185 last += part[i].percent * (uint64_t) 0xffffffff / 10000; | 185 last += part[i].percent * (uint64_t) 0xffffffff / 10000; |