Skip to content
Snippets Groups Projects
Commit 517b418b authored by Roger Dingledine's avatar Roger Dingledine
Browse files

bugfix: a connection-level sendme cell would cause a connection to start

packaging from its buffer, even if the circuit-level package-window was
still 0.


svn:r360
parent f8203505
No related branches found
No related tags found
No related merge requests found
......@@ -248,8 +248,8 @@ int connection_edge_process_relay_cell(cell_t *cell, circuit_t *circ, connection
}
conn->package_window += STREAMWINDOW_INCREMENT;
connection_start_reading(conn);
connection_package_raw_inbuf(conn); /* handle whatever might still be on the inbuf */
circuit_consider_stop_edge_reading(circ, edge_type, layer_hint);
if(!circuit_consider_stop_edge_reading(circ, edge_type, layer_hint))
connection_package_raw_inbuf(conn); /* handle whatever might still be on the inbuf */
break;
default:
log_fn(LOG_DEBUG,"unknown relay command %d.",relay_command);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment