Merge branch 'maint-0.4.4'

This commit is contained in:
David Goulet 2020-06-22 14:57:50 -04:00
commit 033f804429
3 changed files with 6 additions and 2 deletions

3
changes/ticket40005 Normal file
View 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.

View File

@ -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;
}
}

View File

@ -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);