From e97adaf8dc13a4f500fab3d70c9c31400a01954f Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 16 Oct 2018 17:57:00 -0400 Subject: Argh. The unset value for OwningControllerFD is NOT -1. --- src/core/mainloop/mainloop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core') 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; -- cgit v1.2.3-54-g00ecf