]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
transition when we send our first padding packet, not on received
authorpulls <tobias.pulls@kau.se>
Mon, 8 Jul 2019 13:51:57 +0000 (15:51 +0200)
committerGeorge Kadianakis <desnacked@riseup.net>
Tue, 23 Jul 2019 08:52:25 +0000 (11:52 +0300)
src/core/or/circuitpadding_machines.c

index 97828553a5ef1860c9965e08566ac0044be7726b..7220d657fcd52fa548507b7581cdc8b9e1bdd4c4 100644 (file)
@@ -406,7 +406,7 @@ circpad_machine_relay_hide_rend_circuits(smartlist_t *machines_sl)
   /* OBFUSCATE_CIRC_SETUP -> END transition when we send our first
    * padding packet and/or hit the state length (the state length is 1). */
   relay_machine->states[CIRCPAD_STATE_OBFUSCATE_CIRC_SETUP].
-      next_state[CIRCPAD_EVENT_PADDING_RECV] = CIRCPAD_STATE_END;
+      next_state[CIRCPAD_EVENT_PADDING_SENT] = CIRCPAD_STATE_END;
   relay_machine->states[CIRCPAD_STATE_OBFUSCATE_CIRC_SETUP].
       next_state[CIRCPAD_EVENT_LENGTH_COUNT] = CIRCPAD_STATE_END;