diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-02-01 11:05:50 -0500 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2018-02-01 16:00:59 -0500 |
commit | cb5654f300312a8f4c777378d68696667eff427b (patch) | |
tree | 076eb0a7455c61ec21409b5946d11caacf781dd6 /src/or/channel.c | |
parent | adaf3e9b89f62d68ab631b8f672d9bff996689b9 (diff) | |
download | tor-cb5654f300312a8f4c777378d68696667eff427b.tar.gz tor-cb5654f300312a8f4c777378d68696667eff427b.zip |
sched: Use the sched_heap_idx field to double-check our fix for 24700.
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/channel.c')
-rw-r--r-- | src/or/channel.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/channel.c b/src/or/channel.c index 0b5a7fde90..049a5290df 100644 --- a/src/or/channel.c +++ b/src/or/channel.c @@ -951,6 +951,9 @@ channel_init(channel_t *chan) /* Scheduler state is idle */ chan->scheduler_state = SCHED_CHAN_IDLE; + + /* Channel is not in the scheduler heap. */ + chan->sched_heap_idx = -1; } /** |