add comments for switch fall throughs

From: Stefan Bühler <stbuehler@web.de>

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2944 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.35
Stefan Bühler 9 years ago
parent b239e7734a
commit 29a1070299
  1. 1
      NEWS
  2. 1
      src/connections.c
  3. 2
      src/mod_fastcgi.c
  4. 1
      src/request.c

@ -10,6 +10,7 @@ NEWS
* [mod_dirlisting] fix memory leak if pcre fails
* [mod_fastcgi,mod_scgi] fix resource leaks on spawning backends
* [mod_magnet] fix memory leak
* add comments for switch fall throughs
- 1.4.34
* [mod_auth] explicitly link ssl for SHA1 (fixes #2517)

@ -1477,6 +1477,7 @@ int connection_state_machine(server *srv, connection *con) {
break;
case HANDLER_COMEBACK:
done = -1;
/* fallthrough */
case HANDLER_WAIT_FOR_EVENT:
/* come back here */
connection_set_state(srv, con, CON_STATE_HANDLE_REQUEST);

@ -3018,7 +3018,7 @@ static handler_t fcgi_write_request(server *srv, handler_ctx *hctx) {
break;
}
/* fallthrough */
case FCGI_STATE_PREPARE_WRITE:
/* ok, we have the connection */

@ -1023,6 +1023,7 @@ int http_request_parse(server *srv, connection *con) {
case '\t':
/* strip leading WS */
if (value == cur) value = cur+1;
/* fallthrough */
default:
if (*cur >= 0 && *cur < 32 && *cur != '\t') {
if (srv->srvconf.log_request_header_on_error) {

Loading…
Cancel
Save