commit 7b53735fdef041c23156dd3dd7d0ad31f908e28f
parent 6d41b7f68a6574550f032c8a35554dfaf8a7b2c9
Author: Nick Mathewson <nickm@torproject.org>
Date: Wed, 19 Mar 2025 13:40:46 -0400
Fix compilation with --disable-relay-mode.
Broken with my happy-family-sandbox patch;
bug not in any released Tor.
Diffstat:
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/app/main/main.c b/src/app/main/main.c
@@ -957,6 +957,7 @@ sandbox_init_filter(void)
OPEN("/etc/hosts");
OPEN("/proc/meminfo");
+#ifdef HAVE_MODULE_RELAY
{
smartlist_t *family_id_files =
list_family_key_files(options, options->KeyDirectory);
@@ -967,6 +968,7 @@ sandbox_init_filter(void)
SMARTLIST_FOREACH(family_id_files, char *, cp, tor_free(cp));
smartlist_free(family_id_files);
}
+#endif
if (options->BridgeAuthoritativeDir)
OPEN_DATADIR_SUFFIX("networkstatus-bridges", ".tmp");
diff --git a/src/feature/relay/relay_handshake.h b/src/feature/relay/relay_handshake.h
@@ -60,7 +60,6 @@ connection_or_compute_authenticate_cell_body(
{
(void)conn;
(void)authtype;
- (void)signing_key;
(void)ed_signing_key;
(void)server;
tor_assert_nonfatal_unreached();