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
Container Registry
Model registry
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
The Tor Project
Core
Tor
Commits
e5c341eb
Commit
e5c341eb
authored
7 years ago
by
Nick Mathewson
Browse files
Options
Downloads
Plain Diff
Merge branch 'maint-0.3.2'
parents
34981838
e7126a10
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
changes/bug20532
+4
-0
4 additions, 0 deletions
changes/bug20532
src/or/bridges.c
+8
-0
8 additions, 0 deletions
src/or/bridges.c
with
12 additions
and
0 deletions
changes/bug20532
0 → 100644
+
4
−
0
View file @
e5c341eb
o Minor bugfixes (bridges):
- Overwrite the bridge address earlier in the process of directly
retrieving its descriptor, to make sure we reach it on the configured
address. Fixes bug 20532; bugfix on 0.2.0.10-alpha.
This diff is collapsed.
Click to expand it.
src/or/bridges.c
+
8
−
0
View file @
e5c341eb
...
...
@@ -54,6 +54,8 @@ struct bridge_info_t {
};
static
void
bridge_free
(
bridge_info_t
*
bridge
);
static
void
rewrite_node_address_for_bridge
(
const
bridge_info_t
*
bridge
,
node_t
*
node
);
/** A list of configured bridges. Whenever we actually get a descriptor
* for one, we add it as an entry guard. Note that the order of bridges
...
...
@@ -574,6 +576,12 @@ launch_direct_bridge_descriptor_fetch(bridge_info_t *bridge)
return
;
}
/* If we already have a node_t for this bridge, rewrite its address now. */
node_t
*
node
=
node_get_mutable_by_id
(
bridge
->
identity
);
if
(
node
)
{
rewrite_node_address_for_bridge
(
bridge
,
node
);
}
tor_addr_port_t
bridge_addrport
;
memcpy
(
&
bridge_addrport
.
addr
,
&
bridge
->
addr
,
sizeof
(
tor_addr_t
));
bridge_addrport
.
port
=
bridge
->
port
;
...
...
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