diff options
author | Neel Chauhan <neel@neelc.org> | 2020-11-24 19:05:27 -0800 |
---|---|---|
committer | Neel Chauhan <neel@neelc.org> | 2020-11-24 20:47:31 -0800 |
commit | be6db23d1d4ce1185a7263f8554978e0fb9ea821 (patch) | |
tree | 3c38283387b41aef588c4764e0cd34b9ea1e9083 /src/feature/control | |
parent | 157fe4597e5876cb7af4f4f467db1ffaff4bd9ce (diff) | |
download | tor-be6db23d1d4ce1185a7263f8554978e0fb9ea821.tar.gz tor-be6db23d1d4ce1185a7263f8554978e0fb9ea821.zip |
Some test and logic corrections
Diffstat (limited to 'src/feature/control')
-rw-r--r-- | src/feature/control/control_cmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/feature/control/control_cmd.c b/src/feature/control/control_cmd.c index 739577c506..8df9598c9f 100644 --- a/src/feature/control/control_cmd.c +++ b/src/feature/control/control_cmd.c @@ -1831,8 +1831,9 @@ handle_control_add_onion(control_connection_t *conn, } } else if (!strcasecmp(arg->key, "ClientAuthV3")) { hs_service_authorized_client_t *client_v3 = - parse_authorized_client_key(arg->value); + parse_authorized_client_key(arg->value, false); if (!client_v3) { + control_write_endreply(conn, 512, "Cannot decode v3 client auth key"); goto out; } @@ -1925,7 +1926,6 @@ handle_control_add_onion(control_connection_t *conn, auth_clients, auth_clients_v3, &service_id); port_cfgs = NULL; /* port_cfgs is now owned by the rendservice code. */ auth_clients = NULL; /* so is auth_clients */ - auth_clients_v3 = NULL; /* so is auth_clients_v3 */ switch (ret) { case RSAE_OKAY: { |