mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
r12587@catbus: nickm | 2007-04-30 15:47:39 -0400
Backport candidate: correctly set the purpose of routers that are inserted by the controller with purpose=controller. svn:r10071
This commit is contained in:
+1
-1
@@ -1696,7 +1696,7 @@ get_purpose(char **string, int for_circuits, uint8_t *purpose)
|
||||
ROUTER_PURPOSE_GENERAL;
|
||||
else if (!strcmp(*string, "controller"))
|
||||
*purpose = for_circuits ? CIRCUIT_PURPOSE_CONTROLLER :
|
||||
ROUTER_PURPOSE_GENERAL;
|
||||
ROUTER_PURPOSE_CONTROLLER;
|
||||
else { /* not a recognized purpose */
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user