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
The Tor Project
Core
Tor
Commits
9bb00a74
Commit
9bb00a74
authored
Oct 02, 2018
by
rl1987
Browse files
Refrain from listener rebinding when address families differ
parent
df2b46d1
Changes
2
Hide whitespace changes
Inline
Side-by-side
changes/bug27928
0 → 100644
View file @
9bb00a74
o Minor bugfixes (networking):
- Refrain from attempting socket rebinding when old
and new listeners are in different address families.
Fixes bug 27928; bugfix on 0.3.5.1-alpha.
src/core/mainloop/connection.c
View file @
9bb00a74
...
...
@@ -2798,6 +2798,7 @@ retry_listener_ports(smartlist_t *old_conns,
}
#ifdef ENABLE_LISTENER_REBIND
const
int
may_need_rebind
=
tor_addr_family
(
&
wanted
->
addr
)
==
tor_addr_family
(
&
conn
->
addr
)
&&
port_matches_exact
&&
bool_neq
(
tor_addr_is_null
(
&
wanted
->
addr
),
tor_addr_is_null
(
&
conn
->
addr
));
if
(
replacements
&&
may_need_rebind
)
{
...
...
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