aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrl1987 <rl1987@sdf.lonestar.org>2014-11-23 21:17:15 +0200
committerNick Mathewson <nickm@torproject.org>2014-12-21 14:48:38 -0500
commit74731607651998bc6bdce9559c3352d57c60008c (patch)
tree5d5cb6f31b1b034a1e21b5cde1ef7b3a78a304e8 /src
parent5a7dd44d6e0996f8dec376f049551fd10b4b6b6c (diff)
downloadtor-74731607651998bc6bdce9559c3352d57c60008c.tar.gz
tor-74731607651998bc6bdce9559c3352d57c60008c.zip
Using CHANNEL_IS_OPEN macro in circuitbuild.c
Diffstat (limited to 'src')
-rw-r--r--src/or/circuitbuild.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c
index 42c4870e87..847a0c0112 100644
--- a/src/or/circuitbuild.c
+++ b/src/or/circuitbuild.c
@@ -671,7 +671,7 @@ circuit_deliver_create_cell(circuit_t *circ, const create_cell_t *create_cell,
if (CIRCUIT_IS_ORIGIN(circ)) {
/* Update began timestamp for circuits starting their first hop */
if (TO_ORIGIN_CIRCUIT(circ)->cpath->state == CPATH_STATE_CLOSED) {
- if (circ->n_chan->state != CHANNEL_STATE_OPEN) {
+ if (!CHANNEL_IS_OPEN(circ->n_chan)) {
log_warn(LD_CIRC,
"Got first hop for a circuit without an opened channel. "
"State: %s.", channel_state_to_string(circ->n_chan->state));