diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-06-04 12:27:10 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-06-04 12:27:42 -0400 |
commit | b16321425f477bed0a3220378ff80ac22b805cb1 (patch) | |
tree | cadd934fd020cbf73ddedc4762de9c173aac548f | |
parent | 2e1f23151c5154b63ad1a533a2d51a1b8ecbd6ad (diff) | |
download | tor-b16321425f477bed0a3220378ff80ac22b805cb1.tar tor-b16321425f477bed0a3220378ff80ac22b805cb1.tar.gz |
Bulletproof our 11246 fix a little, based on recommendation from andrea.
-rw-r--r-- | src/or/relay.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/relay.c b/src/or/relay.c index f565f9274..628937404 100644 --- a/src/or/relay.c +++ b/src/or/relay.c @@ -1074,6 +1074,9 @@ connection_edge_process_relay_cell(cell_t *cell, circuit_t *circ, * EXIT_CONN_STATE_CONNECTING or EXIT_CONN_STATE_RESOLVING. * This speeds up HTTP, for example. */ optimistic_data = 1; + } else if (rh.stream_id == 0 && rh.command == RELAY_COMMAND_DATA) { + log_warn(LD_BUG, "Somehow I had a connection that matched a " + "data cell with stream ID 0."); } else { return connection_edge_process_relay_cell_not_open( &rh, cell, circ, conn, layer_hint); |