]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
entrynodes.c: fix syntax error around BUG() statement
authorMartin Kepplinger <martink@posteo.de>
Thu, 14 Sep 2017 12:58:26 +0000 (14:58 +0200)
committerNick Mathewson <nickm@torproject.org>
Thu, 14 Sep 2017 14:14:44 +0000 (10:14 -0400)
Fix those misplaced brackets.

Signed-off-by: Martin Kepplinger <martink@posteo.de>
src/or/entrynodes.c

index cdebf2e43e3a99608ac1ff122b20ff0c15f2eee0..d762afdcfe070eb0552cd0f2be5661a776365b0d 100644 (file)
@@ -2372,7 +2372,7 @@ entry_guards_upgrade_waiting_circuits(guard_selection_t *gs,
 
   SMARTLIST_FOREACH_BEGIN(all_circuits, origin_circuit_t *, circ) {
     circuit_guard_state_t *state = origin_circuit_get_guard_state(circ);
-    if BUG((state == NULL))
+    if (BUG(state == NULL))
       continue;
 
     if (state->state == GUARD_CIRC_STATE_WAITING_FOR_BETTER_GUARD) {