mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
Revert "Avoid a double-mark in connection_or_close_connection_cb"
This reverts commit 633071eb3b
.
This commit is contained in:
parent
17880e4c0a
commit
3a17a1a62f
@ -1162,12 +1162,10 @@ connection_or_tls_renegotiated_cb(tor_tls_t *tls, void *_conn)
|
|||||||
static void
|
static void
|
||||||
connection_or_close_connection_cb(void *_conn)
|
connection_or_close_connection_cb(void *_conn)
|
||||||
{
|
{
|
||||||
or_connection_t *or_conn = _conn;
|
or_connection_t *conn = _conn;
|
||||||
connection_t *conn = TO_CONN(or_conn);
|
|
||||||
|
|
||||||
connection_stop_reading(conn);
|
connection_stop_reading(TO_CONN(conn));
|
||||||
if (!conn->marked_for_close)
|
connection_mark_for_close(TO_CONN(conn));
|
||||||
connection_mark_for_close(conn);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Move forward with the tls handshake. If it finishes, hand
|
/** Move forward with the tls handshake. If it finishes, hand
|
||||||
|
Loading…
Reference in New Issue
Block a user