commit 53454fad956c278921487a9956aa9f022b9cc2c7 Author: Andrea Shepard andrea@torproject.org Date: Tue Oct 9 10:51:10 2012 -0700
Set reason_for_closing when erroring out of channel_tls_connect() --- src/or/channeltls.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/or/channeltls.c b/src/or/channeltls.c index 93e0636..339663e 100644 --- a/src/or/channeltls.c +++ b/src/or/channeltls.c @@ -133,6 +133,7 @@ channel_tls_connect(const tor_addr_t *addr, uint16_t port, tlschan->conn = connection_or_connect(addr, port, id_digest, tlschan); /* connection_or_connect() will fill in tlschan->conn */ if (!(tlschan->conn)) { + chan->reason_for_closing = CHANNEL_CLOSE_FOR_ERROR; channel_change_state(chan, CHANNEL_STATE_ERROR); goto err; }
tor-commits@lists.torproject.org