aboutsummaryrefslogtreecommitdiff
path: root/src/or/scheduler.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-07-28 06:59:03 -0400
committerNick Mathewson <nickm@torproject.org>2016-07-28 06:59:03 -0400
commita8676b1edecee2d1d472b7f67dd026ef7b084a2f (patch)
treed9ba30676becb8e03bbceaae9ba19a8288a2eb1d /src/or/scheduler.c
parentf0488551e7be4e2d21a104903a86be993a240398 (diff)
parent47573038736b96e2a353a25ed3c788dcb77d8fcb (diff)
downloadtor-a8676b1edecee2d1d472b7f67dd026ef7b084a2f.tar.gz
tor-a8676b1edecee2d1d472b7f67dd026ef7b084a2f.zip
Merge branch 'bug18902_squashed'
Diffstat (limited to 'src/or/scheduler.c')
-rw-r--r--src/or/scheduler.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/or/scheduler.c b/src/or/scheduler.c
index 3fab3026d8..49ac1b939a 100644
--- a/src/or/scheduler.c
+++ b/src/or/scheduler.c
@@ -496,13 +496,13 @@ scheduler_run, (void))
/* Readd any channels we need to */
if (to_readd) {
- SMARTLIST_FOREACH_BEGIN(to_readd, channel_t *, chan) {
- chan->scheduler_state = SCHED_CHAN_PENDING;
+ SMARTLIST_FOREACH_BEGIN(to_readd, channel_t *, readd_chan) {
+ readd_chan->scheduler_state = SCHED_CHAN_PENDING;
smartlist_pqueue_add(channels_pending,
scheduler_compare_channels,
STRUCT_OFFSET(channel_t, sched_heap_idx),
- chan);
- } SMARTLIST_FOREACH_END(chan);
+ readd_chan);
+ } SMARTLIST_FOREACH_END(readd_chan);
smartlist_free(to_readd);
}