Bläddra i källkod

Argh. The unset value for OwningControllerFD is NOT -1.

Nick Mathewson 5 år sedan
förälder
incheckning
e97adaf8dc
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      src/core/mainloop/mainloop.c

+ 1 - 1
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;