Fix circuit_list_path_impl(): internal circuits do not have an "exit". Trivial fix for 3079.

This commit is contained in:
Nick Mathewson 2011-05-03 21:53:13 -04:00
parent 68ae5afa5a
commit 4126de6888

View File

@ -1506,7 +1506,7 @@ circuit_list_path_impl(origin_circuit_t *circ, int verbose, int verbose_names)
circ->build_state->is_internal ? "internal" : "exit",
circ->build_state->need_uptime ? " (high-uptime)" : "",
circ->build_state->desired_path_len,
circ->_base.state == CIRCUIT_STATE_OPEN ? "" : ", exit ",
circ->_base.state == CIRCUIT_STATE_OPEN ? "" : ", last hop ",
circ->_base.state == CIRCUIT_STATE_OPEN ? "" :
(nickname?nickname:"*unnamed*"));
smartlist_add(elements, cp);