diff options
author | Andrea Shepard <andrea@torproject.org> | 2012-10-09 10:51:10 -0700 |
---|---|---|
committer | Andrea Shepard <andrea@torproject.org> | 2012-10-09 23:19:53 -0700 |
commit | 53454fad956c278921487a9956aa9f022b9cc2c7 (patch) | |
tree | 96c784da785667d394396dcd9be39e1e9bcb7746 /src/or/channeltls.c | |
parent | 3f4b95b1a32787464b5877c7d21474801d4b944c (diff) | |
download | tor-53454fad956c278921487a9956aa9f022b9cc2c7.tar.gz tor-53454fad956c278921487a9956aa9f022b9cc2c7.zip |
Set reason_for_closing when erroring out of channel_tls_connect()
Diffstat (limited to 'src/or/channeltls.c')
-rw-r--r-- | 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 93e06364de..339663e00a 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; } |