quell compiler warnings for -Wimplicit-fallthrough

personal/stbuehler/mod-csrf
Glenn Strauss 2017-07-16 01:34:17 -04:00
parent d66cbe9577
commit b50aa2df51
3 changed files with 3 additions and 0 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;
}