diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-04-07 20:25:22 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-04-07 20:25:22 +0000 |
commit | b897cb1ec31f2404ecfdddf9da8ad2e106b72278 (patch) | |
tree | 0886ec32a4b7c0b471b6ae6c04552a8b0b9648f9 /src/or/relay.c | |
parent | 3a0fb0f00775b961e282d1c4a7ec034bee3cdb14 (diff) | |
download | tor-b897cb1ec31f2404ecfdddf9da8ad2e106b72278.tar.gz tor-b897cb1ec31f2404ecfdddf9da8ad2e106b72278.zip |
Change conn_(type|state)_to_string from const arrays to switch functions so we (I) will not make Tor crash the next time we (I) add a new state.
svn:r4045
Diffstat (limited to 'src/or/relay.c')
-rw-r--r-- | src/or/relay.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/relay.c b/src/or/relay.c index c5554c2634..9ffb1eaa84 100644 --- a/src/or/relay.c +++ b/src/or/relay.c @@ -748,7 +748,7 @@ connection_edge_process_relay_cell_not_open( } log_fn(LOG_WARN,"Got an unexpected relay command %d, in state %d (%s). Closing.", - rh->command, conn->state, conn_state_to_string[conn->type][conn->state]); + rh->command, conn->state, conn_state_to_string(conn->type, conn->state)); connection_edge_end(conn, END_STREAM_REASON_TORPROTOCOL, conn->cpath_layer); connection_mark_for_close(conn); return -1; |