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
b9d71f38
Commit
b9d71f38
authored
5 years ago
by
Nick Mathewson
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'tor-github/pr/1693/head' into maint-0.3.5
parents
add387c5
1f163fcb
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
changes/bug33093_logging
+5
-0
5 additions, 0 deletions
changes/bug33093_logging
src/lib/tls/buffers_tls.c
+2
-2
2 additions, 2 deletions
src/lib/tls/buffers_tls.c
with
7 additions
and
2 deletions
changes/bug33093_logging
0 → 100644
+
5
−
0
View file @
b9d71f38
o Minor bugfixes (logging):
- If we encounter a bug when flushing a buffer to a TLS connection,
only log the bug once per invocation of the Tor process. Previously we
would log with every occurrence, which could cause us to run out of
disk space. Fixes bug 33093; bugfix on 0.3.2.2-alpha.
This diff is collapsed.
Click to expand it.
src/lib/tls/buffers_tls.c
+
2
−
2
View file @
b9d71f38
...
...
@@ -146,10 +146,10 @@ buf_flush_to_tls(buf_t *buf, tor_tls_t *tls, size_t flushlen,
size_t
flushed
=
0
;
ssize_t
sz
;
tor_assert
(
buf_flushlen
);
if
(
BUG
(
*
buf_flushlen
>
buf
->
datalen
)
)
{
IF_BUG_ONCE
(
*
buf_flushlen
>
buf
->
datalen
)
{
*
buf_flushlen
=
buf
->
datalen
;
}
if
(
BUG
(
flushlen
>
*
buf_flushlen
)
)
{
IF_BUG_ONCE
(
flushlen
>
*
buf_flushlen
)
{
flushlen
=
*
buf_flushlen
;
}
sz
=
(
ssize_t
)
flushlen
;
...
...
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