Skip to content
Snippets Groups Projects
Commit 0f144d6a authored by Nick Mathewson's avatar Nick Mathewson :game_die:
Browse files

fix warning on win32

svn:r2518
parent 96816bab
No related branches found
No related tags found
No related merge requests found
......@@ -734,8 +734,8 @@ int connection_handle_read(connection_t *conn) {
/* There's a read error; kill the connection.*/
connection_close_immediate(conn); /* Don't flush; connection is dead. */
if(conn->type == CONN_TYPE_AP || conn->type == CONN_TYPE_EXIT) {
connection_edge_end(conn, connection_state_is_open(conn) ?
END_STREAM_REASON_MISC : END_STREAM_REASON_CONNECTFAILED,
connection_edge_end(conn, (char)(connection_state_is_open(conn) ?
END_STREAM_REASON_MISC : END_STREAM_REASON_CONNECTFAILED),
conn->cpath_layer);
}
connection_mark_for_close(conn);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment