diff options
author | rl1987 <rl1987@sdf.lonestar.org> | 2014-11-23 21:12:47 +0200 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-12-21 14:48:38 -0500 |
commit | 5a7dd44d6e0996f8dec376f049551fd10b4b6b6c (patch) | |
tree | 1e6948ba03395f53c1d84c0f18186e6fc5c76515 /src | |
parent | 668edc51323e507be88b50fb8a49f20bef779bc8 (diff) | |
download | tor-5a7dd44d6e0996f8dec376f049551fd10b4b6b6c.tar.gz tor-5a7dd44d6e0996f8dec376f049551fd10b4b6b6c.zip |
Using channel state lookup macros in circuitbias.c.
Diffstat (limited to 'src')
-rw-r--r-- | src/or/circpathbias.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/circpathbias.c b/src/or/circpathbias.c index a6858a3460..e5e3326ca1 100644 --- a/src/or/circpathbias.c +++ b/src/or/circpathbias.c @@ -768,8 +768,8 @@ pathbias_send_usable_probe(circuit_t *circ) /* Can't probe if the channel isn't open */ if (circ->n_chan == NULL || - (circ->n_chan->state != CHANNEL_STATE_OPEN - && circ->n_chan->state != CHANNEL_STATE_MAINT)) { + (!CHANNEL_IS_OPEN(circ->n_chan) + && !CHANNEL_IS_MAINT(circ->n_chan))) { log_info(LD_CIRC, "Skipping pathbias probe for circuit %d: Channel is not open.", ocirc->global_identifier); |