mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 22:58:50 +01:00
Fix two typo bugs found by new state length test.
This commit is contained in:
parent
e8a1f24178
commit
148c2d5bab
1 changed files with 2 additions and 2 deletions
|
@ -253,7 +253,7 @@ circpad_histogram_bin_to_usec(const circpad_machine_runtime_t *mi,
|
|||
|
||||
/* The infinity bin has an upper bound of infinity, so make sure we return
|
||||
* that if they ask for it. */
|
||||
if (bin > CIRCPAD_INFINITY_BIN(mi)) {
|
||||
if (bin > CIRCPAD_INFINITY_BIN(state)) {
|
||||
return CIRCPAD_DELAY_INFINITE;
|
||||
}
|
||||
|
||||
|
@ -936,7 +936,7 @@ circpad_machine_update_state_length_for_nonpadding(
|
|||
{
|
||||
const circpad_state_t *state = NULL;
|
||||
|
||||
if (mi->state_length != CIRCPAD_STATE_LENGTH_INFINITE)
|
||||
if (mi->state_length == CIRCPAD_STATE_LENGTH_INFINITE)
|
||||
return;
|
||||
|
||||
state = circpad_machine_current_state(mi);
|
||||
|
|
Loading…
Add table
Reference in a new issue