diff options
author | Guinness <guinness@crans.org> | 2020-10-20 21:04:33 +0200 |
---|---|---|
committer | Guinness <guinness@crans.org> | 2020-10-20 21:04:33 +0200 |
commit | 0668437b5895c2a870f38557b4f432ebade07e8d (patch) | |
tree | f3ab0dfc7d6ce6105a0d207325c668f19933466d /src/core/or/circuitpadding.c | |
parent | 66cd12e044a33870e5ce0732de21a1d7810d2469 (diff) | |
download | tor-0668437b5895c2a870f38557b4f432ebade07e8d.tar.gz tor-0668437b5895c2a870f38557b4f432ebade07e8d.zip |
Set is_padding_timer_scheduled to 0
When calling `circpad_send_padding_cell_for_callback()`, the flag
`is_padding_timer_scheduled` was not resetted to 0 which caused an issue
in the circpad simulator.
This commit fixes this problem.
Fixes #32671.
Diffstat (limited to 'src/core/or/circuitpadding.c')
-rw-r--r-- | src/core/or/circuitpadding.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/or/circuitpadding.c b/src/core/or/circuitpadding.c index 889ffb03f1..e6daba5469 100644 --- a/src/core/or/circuitpadding.c +++ b/src/core/or/circuitpadding.c @@ -1226,6 +1226,7 @@ circpad_send_padding_cell_for_callback(circpad_machine_runtime_t *mi) circuit_t *circ = mi->on_circ; int machine_idx = mi->machine_index; mi->padding_scheduled_at_usec = 0; + mi->is_padding_timer_scheduled = 0; circpad_statenum_t state = mi->current_state; /* Make sure circuit didn't close on us */ |