mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 13:13:44 +01:00
stop some more seg faults
svn:r2921
This commit is contained in:
parent
63353462f8
commit
73da4bad46
@ -147,11 +147,11 @@ static void command_process_create_cell(cell_t *cell, connection_t *conn) {
|
||||
*/
|
||||
if ((cell->circ_id & (1<<15)) && conn->circ_id_type == CIRC_ID_TYPE_HIGHER) {
|
||||
log_fn(LOG_INFO, "Got a high circuit ID from %s (%d); switching to low circuit IDs.",
|
||||
conn->nickname, conn->s);
|
||||
conn->nickname ? conn->nickname : "client", conn->s);
|
||||
conn->circ_id_type = CIRC_ID_TYPE_LOWER;
|
||||
} else if (!(cell->circ_id & (1<<15)) && conn->circ_id_type == CIRC_ID_TYPE_LOWER) {
|
||||
log_fn(LOG_INFO, "Got a low circuit ID from %s (%d); switching to high circuit IDs.",
|
||||
conn->nickname, conn->s);
|
||||
conn->nickname ? conn->nickname : "client", conn->s);
|
||||
conn->circ_id_type = CIRC_ID_TYPE_HIGHER;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user