]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
hs_dos.c: rewrite a comment not to say "fallthrough"
authorNick Mathewson <nickm@torproject.org>
Wed, 6 May 2020 20:49:57 +0000 (16:49 -0400)
committerNick Mathewson <nickm@torproject.org>
Wed, 6 May 2020 20:49:57 +0000 (16:49 -0400)
There's nothing wrong with the comment, but the script I'm about to
apply wouldn't like it.

src/feature/hs/hs_dos.c

index b64ab0a1c3f78d588260dfdd07b7ba804689e77e..1f7415a280c0c2027cb26d487adcf06d0055f2de 100644 (file)
@@ -196,7 +196,9 @@ hs_dos_can_send_intro2(or_circuit_t *s_intro_circ)
     goto allow;
   }
 
-  /* Fallthrough is to disallow since this means the bucket has reached 0. */
+  /* If we reach this point, then it means the bucket has reached zero, and
+     we're going to disallow. */
+
  disallow:
   /* Increment stats counter, we are rejecting the INTRO2 cell. */
   intro2_rejected_count++;