tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

commit 70bcff6010f933c7dbce5d797ea354c6475e1f94
parent 5f00c03ed0327917409b074b99b7509c26128617
Author: Nick Mathewson <nickm@torproject.org>
Date:   Wed, 18 Sep 2019 08:07:50 -0400

Merge branch 'bug31772_041' into maint-0.4.1

Diffstat:
Achanges/ticket31772 | 4++++
Msrc/feature/control/control_cmd.c | 4+++-
2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/changes/ticket31772 b/changes/ticket31772 @@ -0,0 +1,4 @@ + o Minor bugfixes (controller protocol): + - Fix the MAPADDRESS controller command to accept one or more + arguments. Previously, it required two or more arguments, and ignored + the first. Fixes bug 31772; bugfix on 0.4.1.1-alpha. diff --git 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, };