mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-30 23:53:32 +01:00
Merge branch 'tor-github/pr/1042'
This commit is contained in:
commit
0a86f14add
4
changes/ticket30580
Normal file
4
changes/ticket30580
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
o Minor bugfixes (controller):
|
||||||
|
- POSTDESCRIPTOR requests should work again. Previously, they were
|
||||||
|
broken if a "purpose=" flag was specified. Fixes bug 30580;
|
||||||
|
bugfix on 0.4.1.1-alpha.
|
@ -1049,9 +1049,11 @@ handle_control_postdescriptor(control_connection_t *conn,
|
|||||||
line = config_line_find_case(args->kwargs, "purpose");
|
line = config_line_find_case(args->kwargs, "purpose");
|
||||||
if (line) {
|
if (line) {
|
||||||
purpose = router_purpose_from_string(line->value);
|
purpose = router_purpose_from_string(line->value);
|
||||||
control_printf_endreply(conn, 552, "Unknown purpose \"%s\"",
|
if (purpose == ROUTER_PURPOSE_UNKNOWN) {
|
||||||
line->value);
|
control_printf_endreply(conn, 552, "Unknown purpose \"%s\"",
|
||||||
goto done;
|
line->value);
|
||||||
|
goto done;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
line = config_line_find_case(args->kwargs, "cache");
|
line = config_line_find_case(args->kwargs, "cache");
|
||||||
if (line) {
|
if (line) {
|
||||||
|
Loading…
Reference in New Issue
Block a user