diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-10-16 17:57:00 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-10-16 17:57:04 -0400 |
commit | e97adaf8dc13a4f500fab3d70c9c31400a01954f (patch) | |
tree | a037997f372be1046e47cd90af87d25092e45f68 /src/core | |
parent | 56a3cef4d73922a687fa4256938b5c459aada42c (diff) | |
download | tor-e97adaf8dc13a4f500fab3d70c9c31400a01954f.tar.gz tor-e97adaf8dc13a4f500fab3d70c9c31400a01954f.zip |
Argh. The unset value for OwningControllerFD is NOT -1.
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/mainloop/mainloop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/mainloop/mainloop.c b/src/core/mainloop/mainloop.c index 0f3fbbcce0..a24b343756 100644 --- a/src/core/mainloop/mainloop.c +++ b/src/core/mainloop/mainloop.c @@ -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; |