# HG changeset patch # User Igor Sysoev # Date 1168380280 0 # Node ID 28a8e9b9e8f9defd03f82248e1c20907cbd7b0f2 # Parent cdde2d4ea5d8b1fc3ef1c4744d42c95d3061f6ac fix segfault diff -r cdde2d4ea5d8 -r 28a8e9b9e8f9 src/http/modules/ngx_http_addition_filter_module.c --- a/src/http/modules/ngx_http_addition_filter_module.c Tue Jan 09 20:58:41 2007 +0000 +++ b/src/http/modules/ngx_http_addition_filter_module.c Tue Jan 09 22:04:40 2007 +0000 @@ -87,7 +87,10 @@ ngx_http_addition_ctx_t *ctx; ngx_http_addition_conf_t *conf; - if (r->headers_out.status != NGX_HTTP_OK || r != r->main) { + if (r->headers_out.status != NGX_HTTP_OK + || r != r->main + || r->headers_out.content_type.data == NULL) + { return ngx_http_next_header_filter(r); }