diff options
author | Mike Perry <mikeperry-git@torproject.org> | 2017-04-20 15:00:46 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-05-08 13:49:23 -0400 |
commit | 02a5835c27780e45f705fc1c044b9c471b929dbe (patch) | |
tree | 1d581cfd49d18bfa5da6b1e3a97da1628eedb60c /src/or/relay.c | |
parent | 687a85950afc25010c80cd14539728b3a7ae5675 (diff) | |
download | tor-02a5835c27780e45f705fc1c044b9c471b929dbe.tar.gz tor-02a5835c27780e45f705fc1c044b9c471b929dbe.zip |
Fix issues from dgoulet's code review.
https://gitlab.com/dgoulet/tor/merge_requests/24
Diffstat (limited to 'src/or/relay.c')
-rw-r--r-- | src/or/relay.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/relay.c b/src/or/relay.c index 18b68fff50..886ddad071 100644 --- a/src/or/relay.c +++ b/src/or/relay.c @@ -260,8 +260,8 @@ circuit_update_channel_usage(circuit_t *circ, cell_t *cell) if (BUG(!or_circ->p_chan)) return; - if (!or_circ->p_chan->is_client || - (or_circ->p_chan->is_client && circ->n_chan)) { + if (!channel_is_client(or_circ->p_chan) || + (channel_is_client(or_circ->p_chan) && circ->n_chan)) { if (cell->command == CELL_RELAY_EARLY) { if (or_circ->p_chan->channel_usage < CHANNEL_USED_FOR_FULL_CIRCS) { or_circ->p_chan->channel_usage = CHANNEL_USED_FOR_FULL_CIRCS; |