Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Tor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Benjamin J. Thompson
Tor
Commits
efa342f5
Commit
efa342f5
authored
11 years ago
by
Nick Mathewson
Browse files
Options
Downloads
Patches
Plain Diff
Tweak bug9063_redux patch: {n_p}_chan_cells, not {n,p}_conn_cells
parent
d3063da6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/or/circuitlist.c
+4
-4
4 additions, 4 deletions
src/or/circuitlist.c
with
4 additions
and
4 deletions
src/or/circuitlist.c
+
4
−
4
View file @
efa342f5
...
@@ -1508,18 +1508,18 @@ marked_circuit_free_cells(circuit_t *circ)
...
@@ -1508,18 +1508,18 @@ marked_circuit_free_cells(circuit_t *circ)
log_warn
(
LD_BUG
,
"Called on non-marked circuit"
);
log_warn
(
LD_BUG
,
"Called on non-marked circuit"
);
return
;
return
;
}
}
cell_queue_clear
(
&
circ
->
n_c
on
n_cells
);
cell_queue_clear
(
&
circ
->
n_c
ha
n_cells
);
if
(
!
CIRCUIT_IS_ORIGIN
(
circ
))
if
(
!
CIRCUIT_IS_ORIGIN
(
circ
))
cell_queue_clear
(
&
TO_OR_CIRCUIT
(
circ
)
->
p_c
on
n_cells
);
cell_queue_clear
(
&
TO_OR_CIRCUIT
(
circ
)
->
p_c
ha
n_cells
);
}
}
/** Return the number of cells used by the circuit <b>c</b>'s cell queues. */
/** Return the number of cells used by the circuit <b>c</b>'s cell queues. */
static
size_t
static
size_t
n_cells_in_circ_queues
(
const
circuit_t
*
c
)
n_cells_in_circ_queues
(
const
circuit_t
*
c
)
{
{
size_t
n
=
c
->
n_c
on
n_cells
.
n
;
size_t
n
=
c
->
n_c
ha
n_cells
.
n
;
if
(
!
CIRCUIT_IS_ORIGIN
(
c
))
if
(
!
CIRCUIT_IS_ORIGIN
(
c
))
n
+=
TO_OR_CIRCUIT
((
circuit_t
*
)
c
)
->
p_c
on
n_cells
.
n
;
n
+=
TO_OR_CIRCUIT
((
circuit_t
*
)
c
)
->
p_c
ha
n_cells
.
n
;
return
n
;
return
n
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment