mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 13:13:44 +01:00
Merge branch 'maint-0.4.4'
This commit is contained in:
commit
033f804429
3
changes/ticket40005
Normal file
3
changes/ticket40005
Normal file
@ -0,0 +1,3 @@
|
||||
o Minor bugfix (control port, onion service):
|
||||
- Consistently use 'address' in "Invalid v3 address" response to
|
||||
ONION_CLIENT_AUTH commands. Fixes bug 40005; bugfix on 0.4.3.1-alpha.
|
@ -291,7 +291,8 @@ handle_control_onion_client_auth_view(control_connection_t *conn,
|
||||
if (argc >= 1) {
|
||||
hsaddress = smartlist_get(args->args, 0);
|
||||
if (!hs_address_is_valid(hsaddress)) {
|
||||
control_printf_endreply(conn, 512, "Invalid v3 addr \"%s\"", hsaddress);
|
||||
control_printf_endreply(conn, 512, "Invalid v3 address \"%s\"",
|
||||
hsaddress);
|
||||
goto err;
|
||||
}
|
||||
}
|
||||
|
@ -393,7 +393,7 @@ test_hs_control_good_onion_client_auth_add(void *arg)
|
||||
retval = handle_control_command(&conn, (uint32_t) strlen(args), args);
|
||||
tt_int_op(retval, OP_EQ, 0);
|
||||
cp1 = buf_get_contents(TO_CONN(&conn)->outbuf, &sz);
|
||||
tt_str_op(cp1, OP_EQ, "512 Invalid v3 addr \"house\"\r\n");
|
||||
tt_str_op(cp1, OP_EQ, "512 Invalid v3 address \"house\"\r\n");
|
||||
|
||||
done:
|
||||
tor_free(args);
|
||||
|
Loading…
Reference in New Issue
Block a user