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:
Nick Mathewson
2008-02-12 04:37:00 +00:00
parent 3315701457
commit 8682293388
+4 -8
View File
@@ -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;
}
}