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
David Goulet
Tor
Commits
32506ad2
Commit
32506ad2
authored
Apr 09, 2007
by
Nick Mathewson
🎨
Browse files
svn:r9930
parent
98e5d107
Changes
2
Show whitespace changes
Inline
Side-by-side
src/or/circuitlist.c
View file @
32506ad2
...
...
@@ -158,9 +158,11 @@ circuit_set_p_circid_orconn(or_circuit_t *circ, uint16_t id,
or_connection_t
*
conn
)
{
int
active
;
int
active
;
active
=
circ
->
p_conn_cells
.
n
>
0
;
tor_assert
(
bool_eq
(
active
,
circ
->
next_active_on_p_conn
));
active
=
circ
->
p_conn_cells
.
n
>
0
;
circuit_set_circid_orconn_helper
(
TO_CIRCUIT
(
circ
),
CELL_DIRECTION_IN
,
id
,
conn
,
active
);
...
...
@@ -177,9 +179,11 @@ circuit_set_n_circid_orconn(circuit_t *circ, uint16_t id,
or_connection_t
*
conn
)
{
int
active
;
int
active
;
active
=
circ
->
n_conn_cells
.
n
>
0
;
tor_assert
(
bool_eq
(
active
,
circ
->
next_active_on_n_conn
));
active
=
circ
->
n_conn_cells
.
n
>
0
;
circuit_set_circid_orconn_helper
(
circ
,
CELL_DIRECTION_OUT
,
id
,
conn
,
active
);
...
...
@@ -410,6 +414,8 @@ circuit_free(circuit_t *circ)
other
->
rend_splice
=
NULL
;
}
cell_queue_clear
(
&
ocirc
->
p_conn_cells
);
tor_free
(
circ
->
onionskin
);
/* remove from map. */
...
...
@@ -420,6 +426,8 @@ circuit_free(circuit_t *circ)
cell_queue_clear
(
&
ocirc
->
p_conn_cells
);
}
cell_queue_clear
(
&
circ
->
n_conn_cells
);
/* Remove from map. */
circuit_set_n_circid_orconn
(
circ
,
0
,
NULL
);
...
...
src/or/connection_or.c
View file @
32506ad2
...
...
@@ -792,6 +792,7 @@ int
connection_or_send_destroy
(
uint16_t
circ_id
,
or_connection_t
*
conn
,
int
reason
)
{
cell_t
cell
;
circuit_t
*
circ
;
tor_assert
(
conn
);
...
...
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