diff options
author | George Kadianakis <desnacked@riseup.net> | 2019-05-27 14:22:01 +0300 |
---|---|---|
committer | George Kadianakis <desnacked@riseup.net> | 2019-05-27 14:22:01 +0300 |
commit | 0a86f14addd031ac69647f4ab6fc66c1835cd31e (patch) | |
tree | 261048cee8403aecb355f24fa9f0dfd0c43f4802 /src/feature | |
parent | 130eb227acd8a8717dcc5258c4dd5b2adc79930b (diff) | |
parent | 57ee0e3af98e5dce398e8bc7f6f2b77e53208288 (diff) | |
download | tor-0a86f14addd031ac69647f4ab6fc66c1835cd31e.tar.gz tor-0a86f14addd031ac69647f4ab6fc66c1835cd31e.zip |
Merge branch 'tor-github/pr/1042'
Diffstat (limited to 'src/feature')
-rw-r--r-- | src/feature/control/control_cmd.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/feature/control/control_cmd.c b/src/feature/control/control_cmd.c index 5555a2c5c4..17d5b0c7f3 100644 --- a/src/feature/control/control_cmd.c +++ b/src/feature/control/control_cmd.c @@ -1049,9 +1049,11 @@ handle_control_postdescriptor(control_connection_t *conn, line = config_line_find_case(args->kwargs, "purpose"); if (line) { purpose = router_purpose_from_string(line->value); - control_printf_endreply(conn, 552, "Unknown purpose \"%s\"", - line->value); - goto done; + if (purpose == ROUTER_PURPOSE_UNKNOWN) { + control_printf_endreply(conn, 552, "Unknown purpose \"%s\"", + line->value); + goto done; + } } line = config_line_find_case(args->kwargs, "cache"); if (line) { |