summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/test/test_hs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test_hs.c b/src/test/test_hs.c
index 690e07e6f4..8237bbc50e 100644
--- a/src/test/test_hs.c
+++ b/src/test/test_hs.c
@@ -570,8 +570,8 @@ test_single_onion_poisoning(void *arg)
tt_assert(ret == 0);
}
- service_1->directory = tor_strdup(dir1);
- service_2->directory = tor_strdup(dir2);
+ service_1->directory = dir1;
+ service_2->directory = dir2;
/* The services own the directory pointers now */
dir1 = dir2 = NULL;
/* Add port to service 1 */