diff options
author | David Goulet <dgoulet@torproject.org> | 2020-02-04 09:25:55 -0500 |
---|---|---|
committer | George Kadianakis <desnacked@riseup.net> | 2020-02-06 12:54:54 +0200 |
commit | 9278a24729c92b9f5c670b3e1608e2cdbd8bd9a1 (patch) | |
tree | f91a28a47f591f21eed12563cd5288cd5e75fb11 /src/feature/hs/hs_client.c | |
parent | 2c4d7d8c65b3783fa9213cc632d398d0d1b6ef5c (diff) | |
download | tor-9278a24729c92b9f5c670b3e1608e2cdbd8bd9a1.tar.gz tor-9278a24729c92b9f5c670b3e1608e2cdbd8bd9a1.zip |
hs-v3: Remove descriptor when we remove client authorization
When the ONION_CLIENT_AUTH_REMOVE command is given to tor, now also remove the
descriptor associated with the client authorization credentials.
Fixes #33148
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/feature/hs/hs_client.c')
-rw-r--r-- | src/feature/hs/hs_client.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/feature/hs/hs_client.c b/src/feature/hs/hs_client.c index 611cc54302..4599bde5bb 100644 --- a/src/feature/hs/hs_client.c +++ b/src/feature/hs/hs_client.c @@ -1735,6 +1735,9 @@ hs_client_remove_auth_credentials(const char *hsaddress) find_and_remove_client_auth_creds_file(cred); } + /* Remove associated descriptor if any. */ + hs_cache_remove_as_client(&service_identity_pk); + client_service_authorization_free(cred); return REMOVAL_SUCCESS; } |