diff options
author | George Kadianakis <desnacked@riseup.net> | 2019-05-30 18:14:47 +0300 |
---|---|---|
committer | George Kadianakis <desnacked@riseup.net> | 2019-11-18 19:18:45 +0200 |
commit | 46f441502227665c25aa0ad8710bdf8487193904 (patch) | |
tree | cf7b729d4c2a0d319e104403a836f03bf51dc36e /src/feature | |
parent | 00fdaaee1e3cdfe40230a866c497d3648c43940c (diff) | |
download | tor-46f441502227665c25aa0ad8710bdf8487193904.tar.gz tor-46f441502227665c25aa0ad8710bdf8487193904.zip |
control-port: Tests for ONION_CLIENT_AUTH_ADD.
Diffstat (limited to 'src/feature')
-rw-r--r-- | src/feature/hs/hs_client.c | 4 |
1 files changed, 4 insertions, 0 deletions
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); |