summaryrefslogtreecommitdiff
path: root/src/feature/hs/hs_service.c
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2020-01-09 14:51:56 -0500
committerNick Mathewson <nickm@torproject.org>2020-01-21 10:31:29 -0500
commitef28afa2551a6827d85ceb00d8fe2a69d1605795 (patch)
treeb72a8826a7a8ef137e527fe616a6b42abda693b5 /src/feature/hs/hs_service.c
parentf1498e75ddf8e493edecf940616703c36fa17de8 (diff)
downloadtor-ef28afa2551a6827d85ceb00d8fe2a69d1605795.tar.gz
tor-ef28afa2551a6827d85ceb00d8fe2a69d1605795.zip
hs-v3: Add the Onion Balance config file option
At this commit, the service reads the config file and parse it to finally set the service config object with the options. Part of #32709 Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/feature/hs/hs_service.c')
-rw-r--r--src/feature/hs/hs_service.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/feature/hs/hs_service.c b/src/feature/hs/hs_service.c
index 81b37eab40..d0d9d65790 100644
--- a/src/feature/hs/hs_service.c
+++ b/src/feature/hs/hs_service.c
@@ -267,6 +267,11 @@ service_clear_config(hs_service_config_t *config)
service_authorized_client_free(p));
smartlist_free(config->clients);
}
+ if (config->ob_master_pubkeys) {
+ SMARTLIST_FOREACH(config->ob_master_pubkeys, ed25519_public_key_t *, k,
+ tor_free(k));
+ smartlist_free(config->ob_master_pubkeys);
+ }
memset(config, 0, sizeof(*config));
}