summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-02-19 11:51:19 -0500
committerNick Mathewson <nickm@torproject.org>2019-02-19 11:51:19 -0500
commit4df31adef7ada9221de7e39430a34234dd3fc6cb (patch)
tree98c30b0ec6bfd32cfacb83c32023467638ca39d0 /src
parent4bc55ed5ee5aefa1d86aca34bc5bfba2f24086f3 (diff)
parentb054a6c6b9cdda5c35b905f98ff092f15d8b749d (diff)
downloadtor-4df31adef7ada9221de7e39430a34234dd3fc6cb.tar.gz
tor-4df31adef7ada9221de7e39430a34234dd3fc6cb.zip
Merge remote-tracking branch 'tor-github/pr/704' into maint-0.4.0
Diffstat (limited to 'src')
-rw-r--r--src/core/or/scheduler_kist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/or/scheduler_kist.c b/src/core/or/scheduler_kist.c
index 34e5672074..01be751ad2 100644
--- a/src/core/or/scheduler_kist.c
+++ b/src/core/or/scheduler_kist.c
@@ -724,7 +724,7 @@ kist_scheduler_run(void)
SMARTLIST_FOREACH_BEGIN(to_readd, channel_t *, readd_chan) {
scheduler_set_channel_state(readd_chan, SCHED_CHAN_PENDING);
if (!smartlist_contains(cp, readd_chan)) {
- if (!SCHED_BUG(chan->sched_heap_idx != -1, chan)) {
+ if (!SCHED_BUG(readd_chan->sched_heap_idx != -1, readd_chan)) {
/* XXXX Note that the check above is in theory redundant with
* the smartlist_contains check. But let's make sure we're
* not messing anything up, and leave them both for now. */