Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
orbea
Tor
Commits
22cb4c23
Commit
22cb4c23
authored
2 years ago
by
David Goulet
Browse files
Options
Downloads
Plain Diff
Merge branch 'maint-0.4.7'
parents
ce1675ef
7654e12b
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
changes/bug40645
+5
-0
5 additions, 0 deletions
changes/bug40645
src/core/or/channelpadding.c
+1
-1
1 addition, 1 deletion
src/core/or/channelpadding.c
src/core/or/command.c
+1
-1
1 addition, 1 deletion
src/core/or/command.c
with
7 additions
and
2 deletions
changes/bug40645
0 → 100644
+
5
−
0
View file @
22cb4c23
o Minor bugfixes (defense in depth):
- Change a test in the netflow padding code to make it more
_obviously_ safe against remotely triggered crashes.
(It was safe against these before, but not obviously so.)
Fixes bug 40645; bugfix on 0.3.1.1-alpha.
This diff is collapsed.
Click to expand it.
src/core/or/channelpadding.c
+
1
−
1
View file @
22cb4c23
...
...
@@ -186,7 +186,7 @@ channelpadding_get_netflow_inactive_timeout_ms(const channel_t *chan)
high_timeout
=
MAX
(
high_timeout
,
chan
->
padding_timeout_high_ms
);
}
if
(
low_timeout
=
=
high_timeout
)
if
(
low_timeout
>
=
high_timeout
)
return
low_timeout
;
// No randomization
/*
...
...
This diff is collapsed.
Click to expand it.
src/core/or/command.c
+
1
−
1
View file @
22cb4c23
...
...
@@ -668,7 +668,7 @@ command_process_destroy_cell(cell_t *cell, channel_t *chan)
* DESTROY cell down the circuit so relays can stop queuing in-flight
* cells for this circuit which helps with memory pressure. */
log_debug
(
LD_OR
,
"Received DESTROY cell from n_chan, closing circuit."
);
circuit_mark_for_close
(
circ
,
END_CIRC_REASON_
TORPROTOCOL
);
circuit_mark_for_close
(
circ
,
reason
|
END_CIRC_REASON_
FLAG_REMOTE
);
}
}
}
...
...
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