mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
Set reason_for_closing when erroring out of channel_tls_connect()
This commit is contained in:
parent
3f4b95b1a3
commit
53454fad95
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user