Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ZerXes
Tor
Commits
38ce03d0
Commit
38ce03d0
authored
Dec 09, 2003
by
Roger Dingledine
Browse files
close the circuit when we get a truncated cell
svn:r893
parent
ea6c4f63
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/or/circuit.c
View file @
38ce03d0
...
@@ -989,6 +989,13 @@ int circuit_truncated(circuit_t *circ, crypt_path_t *layer) {
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment