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
9d886185
Commit
9d886185
authored
Oct 03, 2018
by
rl1987
Browse files
Make sure we're removing conn from old_conns *once*
parent
2b146bdb
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/core/mainloop/connection.c
View file @
9d886185
...
...
@@ -2762,6 +2762,11 @@ retry_listener_ports(smartlist_t *old_conns,
const
port_cfg_t
*
found_port
=
NULL
;
/* Okay, so this is a listener. Is it configured? */
/* That is, is it either: 1) exact match - address and port
* pair match exactly between old listener and new port; or 2)
* wildcard match - port matches exactly, but *one* of the
* addresses is wildcard (0.0.0.0 or ::)?
*/
SMARTLIST_FOREACH_BEGIN
(
launch
,
const
port_cfg_t
*
,
wanted
)
{
if
(
conn
->
type
!=
wanted
->
type
)
continue
;
...
...
@@ -2805,6 +2810,7 @@ retry_listener_ports(smartlist_t *old_conns,
SMARTLIST_DEL_CURRENT
(
launch
,
wanted
);
SMARTLIST_DEL_CURRENT
(
old_conns
,
conn
);
break
;
}
#endif
}
...
...
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