diff options
author | George Kadianakis <desnacked@riseup.net> | 2020-08-20 14:34:56 +0300 |
---|---|---|
committer | George Kadianakis <desnacked@riseup.net> | 2020-08-20 14:34:56 +0300 |
commit | 36203e88949c6928d2bdb4bffe8b5e7e68657ee9 (patch) | |
tree | fbb46daa57ed95cb63cb57335ebfb77a9909f6f5 /src/feature/hs | |
parent | 4e3f55fba1690a63942c0415953cbc1eaf30b360 (diff) | |
parent | 6e37086f85aa3e421ebc6f4d64de1cd82bcdeaa6 (diff) | |
download | tor-36203e88949c6928d2bdb4bffe8b5e7e68657ee9.tar.gz tor-36203e88949c6928d2bdb4bffe8b5e7e68657ee9.zip |
Merge branch 'maint-0.4.4'
Diffstat (limited to 'src/feature/hs')
-rw-r--r-- | src/feature/hs/hs_client.c | 2 | ||||
-rw-r--r-- | src/feature/hs/hs_client.h | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/feature/hs/hs_client.c b/src/feature/hs/hs_client.c index cde3560ebf..b67ff237b5 100644 --- a/src/feature/hs/hs_client.c +++ b/src/feature/hs/hs_client.c @@ -2169,6 +2169,8 @@ client_service_authorization_free_(hs_client_service_authorization_t *auth) return; } + tor_free(auth->client_name); + memwipe(auth, 0, sizeof(*auth)); tor_free(auth); } diff --git a/src/feature/hs/hs_client.h b/src/feature/hs/hs_client.h index a11caa309f..88dede8126 100644 --- a/src/feature/hs/hs_client.h +++ b/src/feature/hs/hs_client.h @@ -71,6 +71,9 @@ typedef struct hs_client_service_authorization_t { /** An onion address that is used to connect to the onion service. */ char onion_address[HS_SERVICE_ADDR_LEN_BASE32+1]; + /** An client name used to connect to the onion service. */ + char *client_name; + /* Optional flags for this client. */ int flags; } hs_client_service_authorization_t; |