comparison src/http/modules/ngx_http_rewrite_module.c @ 308:94e16de3c33f NGINX_0_5_24

nginx 0.5.24 *) Security: the "ssl_verify_client" directive did not work if request was made using HTTP/0.9. *) Bugfix: a part of response body might be passed uncompressed if gzip was used; bug appeared in 0.5.23.
author Igor Sysoev <http://sysoev.ru>
date Wed, 06 Jun 2007 00:00:00 +0400
parents cba14c1e2a4b
children 10cc350ed8a1
comparison
equal deleted inserted replaced
307:0bcb7f864b94 308:94e16de3c33f
565 clcf = ctx->loc_conf[ngx_http_core_module.ctx_index]; 565 clcf = ctx->loc_conf[ngx_http_core_module.ctx_index];
566 clcf->loc_conf = ctx->loc_conf; 566 clcf->loc_conf = ctx->loc_conf;
567 clcf->name = pclcf->name; 567 clcf->name = pclcf->name;
568 clcf->noname = 1; 568 clcf->noname = 1;
569 569
570 if (pclcf->locations.elts == NULL) { 570 if (pclcf->locations == NULL) {
571 if (ngx_array_init(&pclcf->locations, cf->pool, 4, sizeof(void *)) 571 pclcf->locations = ngx_array_create(cf->pool, 2, sizeof(void *));
572 == NGX_ERROR) 572 if (pclcf->locations == NULL) {
573 {
574 return NGX_CONF_ERROR; 573 return NGX_CONF_ERROR;
575 } 574 }
576 } 575 }
577 576
578 clcfp = ngx_array_push(&pclcf->locations); 577 clcfp = ngx_array_push(pclcf->locations);
579 if (clcfp == NULL) { 578 if (clcfp == NULL) {
580 return NGX_CONF_ERROR; 579 return NGX_CONF_ERROR;
581 } 580 }
582 581
583 *clcfp = clcf; 582 *clcfp = clcf;