[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/maint-0.3.0] entrynodes.c: fix syntax error around BUG() statement



commit a971018f6d0a457fddfaa1397ae823623257c2f6
Author: Martin Kepplinger <martink@xxxxxxxxx>
Date:   Thu Sep 14 14:58:26 2017 +0200

    entrynodes.c: fix syntax error around BUG() statement
    
    Fix those misplaced brackets.
    
    Signed-off-by: Martin Kepplinger <martink@xxxxxxxxx>
---
 src/or/entrynodes.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/or/entrynodes.c b/src/or/entrynodes.c
index cdebf2e43..d762afdcf 100644
--- a/src/or/entrynodes.c
+++ b/src/or/entrynodes.c
@@ -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) {

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits