summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/test/test_options.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/test_options.c b/src/test/test_options.c
index ed0581199f..91aae68c68 100644
--- a/src/test/test_options.c
+++ b/src/test/test_options.c
@@ -3221,6 +3221,7 @@ test_options_validate__control(void *ignored)
"controller as soon as possible.\n");
tor_free(msg);
+#ifdef HAVE_SYS_UN_H
free_options_test_data(tdata);
tdata = get_options_test_data(TEST_OPTIONS_DEFAULT_VALUES
"ControlSocket unix:/tmp WorldWritable\n"
@@ -3282,6 +3283,7 @@ test_options_validate__control(void *ignored)
"can reconfigure your Tor. That's bad! You should upgrade your "
"Tor controller as soon as possible.\n");
tor_free(msg);
+#endif
free_options_test_data(tdata);
tdata = get_options_test_data(TEST_OPTIONS_DEFAULT_VALUES