diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-11-30 03:01:16 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-11-30 03:01:16 +0000 |
commit | 3bd613b44d955f9c8585ce26400b921038d26773 (patch) | |
tree | 20202e5d821197bb28bfeca14f2538df3e62f3ae /src/or/relay.c | |
parent | 6b49a93bd5d5446799ba77daa82640e87321af26 (diff) | |
download | tor-3bd613b44d955f9c8585ce26400b921038d26773.tar.gz tor-3bd613b44d955f9c8585ce26400b921038d26773.zip |
Rename connection_get_by_identity_digest to reflect that it is OR-only. Make it use a hashtable instead of a linear search.
svn:r5469
Diffstat (limited to 'src/or/relay.c')
-rw-r--r-- | src/or/relay.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/relay.c b/src/or/relay.c index a8d0b087d4..ae1dafa44e 100644 --- a/src/or/relay.c +++ b/src/or/relay.c @@ -325,6 +325,7 @@ circuit_package_relay_cell(cell_t *cell, circuit_t *circ, if (!conn) { /* XXXX RD This is a bug, right? */ warn(LD_BUG,"incoming relay cell has p_conn==NULL. Dropping."); + assert_circuit_ok(circ); return 0; /* just drop it */ } relay_set_digest(circ->p_digest, cell); |