Browse Source

[mod_fastcgi,mod_scgi] error on oversized request (fixes #2905)

regression in lighttpd 1.4.49 and lighttpd 1.4.50

(thx slawomir.pryczek)

x-ref
  "oversized fcgi requests should fail gracefully"
  https://redmine.lighttpd.net/issues/2905
personal/stbuehler/fix-fdevent
Glenn Strauss 3 years ago
parent
commit
4992c4de10
  1. 1
      src/mod_fastcgi.c
  2. 1
      src/mod_scgi.c

1
src/mod_fastcgi.c

@ -243,6 +243,7 @@ static handler_t fcgi_create_env(server *srv, handler_ctx *hctx) {
if (0 != http_cgi_headers(srv, con, &opts, fcgi_env_add, fcgi_env)) {
con->http_status = 400;
con->mode = DIRECT;
buffer_free(fcgi_env);
return HANDLER_FINISHED;
} else {

1
src/mod_scgi.c

@ -160,6 +160,7 @@ static handler_t scgi_create_env(server *srv, handler_ctx *hctx) {
if (0 != http_cgi_headers(srv, con, &opts, scgi_env_add, scgi_env)) {
buffer_free(scgi_env);
con->http_status = 400;
con->mode = DIRECT;
return HANDLER_FINISHED;
}

Loading…
Cancel
Save