Browse Source

Optimized buffer usage in mod_proxy (fixes #1850)

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2365 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.21
Stefan Bühler 13 years ago
parent
commit
79e229c1f0
  1. 1
      NEWS
  2. 2
      src/mod_proxy.c

1
NEWS

@ -22,6 +22,7 @@ NEWS
* Compare address family in inet_ntop_cache
* Revert CVE-2008-4359 (#1720) fix "encoding+simplifying urls for rewrite/redirect": too many regressions.
* Use FD_CLOEXEC if possible (fixes #1821)
* Optimized buffer usage in mod_proxy (fixes #1850)
- 1.4.20 - 2008-09-30

2
src/mod_proxy.c

@ -652,7 +652,7 @@ static int proxy_demux_response(server *srv, handler_ctx *hctx) {
buffer_prepare_append(hctx->response, b + 1);
hctx->response->used = 1;
} else {
buffer_prepare_append(hctx->response, hctx->response->used + b);
buffer_prepare_append(hctx->response, b);
}
if (-1 == (r = read(hctx->fd, hctx->response->ptr + hctx->response->used - 1, b))) {

Loading…
Cancel
Save