mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 14:51:11 +01:00
close the circuit when we get a truncated cell
svn:r893
This commit is contained in:
parent
ea6c4f6348
commit
38ce03d0e7
1 changed files with 7 additions and 0 deletions
|
@ -989,6 +989,13 @@ int circuit_truncated(circuit_t *circ, crypt_path_t *layer) {
|
||||||
assert(circ);
|
assert(circ);
|
||||||
assert(layer);
|
assert(layer);
|
||||||
|
|
||||||
|
/* XXX Since we don't ask for truncates currently, getting a truncated
|
||||||
|
* means that a connection broke or an extend failed. For now,
|
||||||
|
* just give up.
|
||||||
|
*/
|
||||||
|
circuit_close(circ);
|
||||||
|
return 0;
|
||||||
|
|
||||||
while(layer->next != circ->cpath) {
|
while(layer->next != circ->cpath) {
|
||||||
/* we need to clear out layer->next */
|
/* we need to clear out layer->next */
|
||||||
victim = layer->next;
|
victim = layer->next;
|
||||||
|
|
Loading…
Add table
Reference in a new issue