From 46f441502227665c25aa0ad8710bdf8487193904 Mon Sep 17 00:00:00 2001 From: George Kadianakis Date: Thu, 30 May 2019 18:14:47 +0300 Subject: control-port: Tests for ONION_CLIENT_AUTH_ADD. --- src/feature/hs/hs_client.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/feature/hs/hs_client.c') diff --git a/src/feature/hs/hs_client.c b/src/feature/hs/hs_client.c index 7b981908db..c854737bef 100644 --- a/src/feature/hs/hs_client.c +++ b/src/feature/hs/hs_client.c @@ -1456,6 +1456,10 @@ hs_client_register_auth_credentials(hs_client_service_authorization_t *creds) tor_assert(creds); + if (!client_auths) { + client_auths = digest256map_new(); + } + if (hs_parse_address(creds->onion_address, &service_identity_pk, NULL, NULL) < 0) { client_service_authorization_free(creds); -- cgit v1.2.3-54-g00ecf