Replace some "fall through" comments not at the end of a case.

This commit is contained in:
Nick Mathewson 2020-05-06 10:35:36 -04:00
parent 75547c01a3
commit 9fe23b8672
2 changed files with 5 additions and 2 deletions

View File

@ -1067,7 +1067,10 @@ parse_socks_client(const uint8_t *data, size_t datalen,
log_info(LD_NET, "SOCKS 5 client: need authentication."); log_info(LD_NET, "SOCKS 5 client: need authentication.");
*drain_out = -1; *drain_out = -1;
return 2; return 2;
/* fall through */ default:
/* This wasn't supposed to be exhaustive; there are other
* authentication methods too. */
;
} }
*reason = tor_strdup("server doesn't support any of our available " *reason = tor_strdup("server doesn't support any of our available "

View File

@ -546,7 +546,7 @@ send_resolved_cell,(edge_connection_t *conn, uint8_t answer_type,
break; break;
} else { } else {
answer_type = RESOLVED_TYPE_ERROR; answer_type = RESOLVED_TYPE_ERROR;
/* fall through. */ /* We let this fall through and treat it as an error. */
} }
/* Falls through. */ /* Falls through. */
case RESOLVED_TYPE_ERROR_TRANSIENT: case RESOLVED_TYPE_ERROR_TRANSIENT: