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:
Nick Mathewson 2007-05-10 19:29:39 +00:00
parent 49b8638801
commit 1d5beb0df9
2 changed files with 5 additions and 1 deletions

View File

@ -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:

View File

@ -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;
}