aboutsummaryrefslogtreecommitdiff
path: root/src/feature/control/control_cmd.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-09-18 08:07:56 -0400
committerNick Mathewson <nickm@torproject.org>2019-09-18 08:07:56 -0400
commitd6d3e829dd20b78e2b80e52f0e3865a1002e653b (patch)
treef2d340267fc91f4b97dc7b800f716ea29efe7c79 /src/feature/control/control_cmd.c
parent7225cfc58671aaaeb2e17e7e46bc1f33b87ab22a (diff)
parent70bcff6010f933c7dbce5d797ea354c6475e1f94 (diff)
downloadtor-d6d3e829dd20b78e2b80e52f0e3865a1002e653b.tar.gz
tor-d6d3e829dd20b78e2b80e52f0e3865a1002e653b.zip
Merge branch 'maint-0.4.1'
Diffstat (limited to 'src/feature/control/control_cmd.c')
-rw-r--r--src/feature/control/control_cmd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/feature/control/control_cmd.c b/src/feature/control/control_cmd.c
index a1d7f825db..f804ceafbc 100644
--- a/src/feature/control/control_cmd.c
+++ b/src/feature/control/control_cmd.c
@@ -639,7 +639,9 @@ address_is_invalid_mapaddress_target(const char *addr)
}
static const control_cmd_syntax_t mapaddress_syntax = {
- .max_args=1,
+ // no positional arguments are expected
+ .max_args=0,
+ // an arbitrary number of K=V entries are supported.
.accept_keywords=true,
};