diff options
author | Roger Dingledine <arma@torproject.org> | 2004-11-20 12:55:41 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-11-20 12:55:41 +0000 |
commit | 73da4bad4641f5aa1cfcf679c624d46818147708 (patch) | |
tree | a91344ce713a2cbd02b8a417119daca22214d192 | |
parent | 63353462f8402ee0f55ad1b9d7225cc22b817d51 (diff) | |
download | tor-73da4bad4641f5aa1cfcf679c624d46818147708.tar.gz tor-73da4bad4641f5aa1cfcf679c624d46818147708.zip |
stop some more seg faults
svn:r2921
-rw-r--r-- | src/or/command.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/command.c b/src/or/command.c index 021e12a4fc..e781a523eb 100644 --- a/src/or/command.c +++ b/src/or/command.c @@ -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; } |