diff --git a/ChangeLog b/ChangeLog index d744119b97..9d3d55d8b8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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: diff --git a/src/or/control.c b/src/or/control.c index a3d6a653fe..6a1006347b 100644 --- a/src/or/control.c +++ b/src/or/control.c @@ -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; }