r12719@catbus: nickm | 2007-05-10 15:26:54 -0400
Backport r10071: correctly set the purpose of routers that are inserted by the controller with purpose=controller. svn:r10160
This commit is contained in:
parent
49b8638801
commit
1d5beb0df9
|
@ -9,6 +9,10 @@ Changes in version 0.1.2.14 - 2007-0?-??
|
|||
- Fix a bug in dirserv_remove_invalid() that would cause authorities to
|
||||
corrupt memory under some really unlikely scenarios.
|
||||
|
||||
o Minor bugfixes:
|
||||
- Actually set the purpose correctly for descriptors inserted with
|
||||
purpose=controller.
|
||||
|
||||
|
||||
Changes in version 0.1.2.13 - 2007-04-24
|
||||
o Minor fixes:
|
||||
|
|
|
@ -2045,7 +2045,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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue