diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-04-08 09:37:39 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-04-25 14:13:03 -0400 |
commit | 9471391694168f3d82365ced07b14e466b32b612 (patch) | |
tree | ff81d0036c8577984913287e60fda2c740a2b0bb /src/feature/control/control_cmd.c | |
parent | 0841a69357d73353905f8012f455ec6128201131 (diff) | |
download | tor-9471391694168f3d82365ced07b14e466b32b612.tar.gz tor-9471391694168f3d82365ced07b14e466b32b612.zip |
Add kvline support to controller command parser.
This should let us handle all (or nearly all) of the remaining
commands.
Diffstat (limited to 'src/feature/control/control_cmd.c')
-rw-r--r-- | src/feature/control/control_cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/feature/control/control_cmd.c b/src/feature/control/control_cmd.c index 727950a938..4f67e31637 100644 --- a/src/feature/control/control_cmd.c +++ b/src/feature/control/control_cmd.c @@ -95,7 +95,6 @@ string_array_contains_keyword(const char **array, const char *kwd) return false; } - /** * Helper: parse the arguments to a command according to <b>syntax</b>. On * success, set *<b>error_out</b> to NULL and return a newly allocated @@ -169,6 +168,7 @@ control_cmd_parse_args(const char *command, line->key)) { tor_asprintf(error_out, "Unrecognized keyword argument %s", escaped(line->key)); + goto err; } } } |