Browse Source

quell compiler warnings for -Wimplicit-fallthrough

personal/stbuehler/mod-csrf
Glenn Strauss 4 years ago
parent
commit
b50aa2df51
  1. 1
      src/connections.c
  2. 1
      src/mod_openssl.c
  3. 1
      src/mod_rewrite.c

1
src/connections.c

@ -1150,6 +1150,7 @@ int connection_state_machine(server *srv, connection *con) {
break; /* come back here */
}
/* response headers received from backend; fall through to start response */
/* fall through */
case HANDLER_FINISHED:
if (con->error_handler_saved_status > 0) {
con->request.http_method = con->error_handler_saved_method;

1
src/mod_openssl.c

@ -1317,6 +1317,7 @@ connection_read_cq_ssl (server *srv, connection *con,
switch ((r = SSL_get_error(hctx->ssl, len))) {
case SSL_ERROR_WANT_WRITE:
con->is_writable = -1;
/* fall through */
case SSL_ERROR_WANT_READ:
con->is_readable = 0;

1
src/mod_rewrite.c

@ -464,6 +464,7 @@ URIHANDLER_FUNC(mod_rewrite_physical) {
switch(r = process_rewrite_rules(srv, con, p, p->conf.rewrite_NF)) {
case HANDLER_COMEBACK:
buffer_reset(con->physical.path);
/* fall through */
default:
return r;
}

Loading…
Cancel
Save