Browse Source

Use data_response_init in mod_fastcgi x-sendfile handling for response.headers, fix a small "memleak" (#1628)

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2143 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.20
Stefan Bühler 14 years ago
parent
commit
bcb3310a62
  1. 1
      NEWS
  2. 5
      src/mod_fastcgi.c

1
NEWS

@ -11,6 +11,7 @@ NEWS
* Fix #285 again: read error after SSL_shutdown (thx marton.illes@balabit.com) and clear the error queue before some other calls (CVE-2008-1531)
* Fix mod_magnet: enable "request.method" and "request.protocol" in lighty.env (#1308)
* Fix segfault for appending matched parts if there was no regex matching (just give empty strings) (#1601)
* Use data_response_init in mod_fastcgi x-sendfile handling for response.headers, fix a small "memleak" (#1628)
- 1.4.19 - 2008-03-10

5
src/mod_fastcgi.c

@ -2544,7 +2544,10 @@ static int fcgi_demux_response(server *srv, handler_ctx *hctx) {
stat_cache_entry *sce;
if (HANDLER_ERROR != stat_cache_get_entry(srv, con, ds->value, &sce)) {
data_string *dcls = data_string_init();
data_string *dcls;
if (NULL == (dcls = (data_string *)array_get_unused_element(con->response.headers, TYPE_STRING))) {
dcls = data_response_init();
}
/* found */
http_chunk_append_file(srv, con, ds->value, 0, sce->st.st_size);
hctx->send_content_body = 0; /* ignore the content */

Loading…
Cancel
Save