mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 14:23:30 +01:00
fix warning on win32
svn:r2518
This commit is contained in:
parent
96816bab06
commit
0f144d6a04
@ -734,8 +734,8 @@ int connection_handle_read(connection_t *conn) {
|
|||||||
/* There's a read error; kill the connection.*/
|
/* There's a read error; kill the connection.*/
|
||||||
connection_close_immediate(conn); /* Don't flush; connection is dead. */
|
connection_close_immediate(conn); /* Don't flush; connection is dead. */
|
||||||
if(conn->type == CONN_TYPE_AP || conn->type == CONN_TYPE_EXIT) {
|
if(conn->type == CONN_TYPE_AP || conn->type == CONN_TYPE_EXIT) {
|
||||||
connection_edge_end(conn, connection_state_is_open(conn) ?
|
connection_edge_end(conn, (char)(connection_state_is_open(conn) ?
|
||||||
END_STREAM_REASON_MISC : END_STREAM_REASON_CONNECTFAILED,
|
END_STREAM_REASON_MISC : END_STREAM_REASON_CONNECTFAILED),
|
||||||
conn->cpath_layer);
|
conn->cpath_layer);
|
||||||
}
|
}
|
||||||
connection_mark_for_close(conn);
|
connection_mark_for_close(conn);
|
||||||
|
Loading…
Reference in New Issue
Block a user