Mercurial > hg > nginx-mail
comparison src/http/modules/ngx_http_charset_filter_module.c @ 493:a8424ffa495c NGINX_0_7_39
nginx 0.7.39
*) Bugfix: large response with SSI might hang, if gzipping was enabled;
the bug had appeared in 0.7.28.
Thanks to Artem Bokhan.
*) Bugfix: a segmentation fault might occur in worker process, if short
static variants are used in a "try_files" directive.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Mon, 02 Mar 2009 00:00:00 +0300 |
parents | fd759445d8a8 |
children | 499474178a11 |
comparison
equal
deleted
inserted
replaced
492:9ef0e36f3cd5 | 493:a8424ffa495c |
---|---|
1419 if (mcf == NULL) { | 1419 if (mcf == NULL) { |
1420 return NGX_CONF_ERROR; | 1420 return NGX_CONF_ERROR; |
1421 } | 1421 } |
1422 | 1422 |
1423 if (ngx_array_init(&mcf->charsets, cf->pool, 2, sizeof(ngx_http_charset_t)) | 1423 if (ngx_array_init(&mcf->charsets, cf->pool, 2, sizeof(ngx_http_charset_t)) |
1424 == NGX_ERROR) | 1424 != NGX_OK) |
1425 { | 1425 { |
1426 return NGX_CONF_ERROR; | 1426 return NGX_CONF_ERROR; |
1427 } | 1427 } |
1428 | 1428 |
1429 if (ngx_array_init(&mcf->tables, cf->pool, 1, | 1429 if (ngx_array_init(&mcf->tables, cf->pool, 1, |
1430 sizeof(ngx_http_charset_tables_t)) == NGX_ERROR) | 1430 sizeof(ngx_http_charset_tables_t)) |
1431 != NGX_OK) | |
1431 { | 1432 { |
1432 return NGX_CONF_ERROR; | 1433 return NGX_CONF_ERROR; |
1433 } | 1434 } |
1434 | 1435 |
1435 if (ngx_array_init(&mcf->recodes, cf->pool, 2, | 1436 if (ngx_array_init(&mcf->recodes, cf->pool, 2, |
1436 sizeof(ngx_http_charset_recode_t)) == NGX_ERROR) | 1437 sizeof(ngx_http_charset_recode_t)) |
1438 != NGX_OK) | |
1437 { | 1439 { |
1438 return NGX_CONF_ERROR; | 1440 return NGX_CONF_ERROR; |
1439 } | 1441 } |
1440 | 1442 |
1441 return mcf; | 1443 return mcf; |