mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
r18029@catbus: nickm | 2008-02-11 12:36:39 -0500
Fix command.c compilation with gcc 4.2 warnings enabled. svn:r13475
This commit is contained in:
+4
-8
@@ -489,15 +489,11 @@ command_process_versions_cell(var_cell_t *cell, or_connection_t *conn)
|
||||
|
||||
log_info(LD_OR, "Negotiated version %d with %s",
|
||||
highest_supported_version, safe_str(conn->_base.address));
|
||||
tor_assert(conn->link_proto >= 2);
|
||||
|
||||
if (highest_supported_version >= 2) {
|
||||
if (connection_or_send_netinfo(conn) < 0) {
|
||||
connection_mark_for_close(TO_CONN(conn));
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
/* Should be impossible. */
|
||||
tor_fragile_assert();
|
||||
if (connection_or_send_netinfo(conn) < 0) {
|
||||
connection_mark_for_close(TO_CONN(conn));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user