]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Replace some "fall through" comments not at the end of a case.
authorNick Mathewson <nickm@torproject.org>
Wed, 6 May 2020 14:35:36 +0000 (10:35 -0400)
committerNick Mathewson <nickm@torproject.org>
Wed, 6 May 2020 19:08:02 +0000 (15:08 -0400)
src/core/proto/proto_socks.c
src/feature/relay/dns.c

index 8b78ed44c271acd271d37dcdd62c114bb172ab0f..a6493366e67b9a4b9515d6ef422466bda9bede6f 100644 (file)
@@ -1067,7 +1067,10 @@ parse_socks_client(const uint8_t *data, size_t datalen,
           log_info(LD_NET, "SOCKS 5 client: need authentication.");
           *drain_out = -1;
           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 "
index cc9f4cf49003a0e2458e223f874c5f1d0b74410f..38395862c383e5e57523303697186942de585444 100644 (file)
@@ -546,7 +546,7 @@ send_resolved_cell,(edge_connection_t *conn, uint8_t answer_type,
         break;
       } else {
         answer_type = RESOLVED_TYPE_ERROR;
-        /* fall through. */
+        /* We let this fall through and treat it as an error. */
       }
       /* Falls through. */
     case RESOLVED_TYPE_ERROR_TRANSIENT: