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
e97adaf8
Commit
e97adaf8
authored
Oct 16, 2018
by
Nick Mathewson
🏃
Browse files
Argh. The unset value for OwningControllerFD is NOT -1.
parent
56a3cef4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/core/mainloop/mainloop.c
View file @
e97adaf8
...
...
@@ -1503,7 +1503,7 @@ get_my_roles(const or_options_t *options)
* requires tor to have basic functionnalities. */
int
is_client
=
options_any_client_port_set
(
options
)
||
options
->
ControlPort_set
||
options
->
OwningControllerFD
>
=
0
;
options
->
OwningControllerFD
!
=
UINT64_MAX
;
if
(
is_bridge
)
roles
|=
PERIODIC_EVENT_ROLE_BRIDGE
;
if
(
is_client
)
roles
|=
PERIODIC_EVENT_ROLE_CLIENT
;
...
...
Write
Preview
Markdown
is supported
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