diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-07-28 09:54:39 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-07-28 09:54:39 -0400 |
commit | 5f0fa480dd94f4fec7b8b026dbd0a524f7b9c786 (patch) | |
tree | cf5e30169ecb6017cf000842ed4bed36fcbea777 /src/test/test_hs.c | |
parent | 6252e04a37c8d23e2e6164d20a566fad743a1a37 (diff) | |
parent | eb677c5870ad67e0aa883d700f630c7a9ee99af3 (diff) | |
download | tor-5f0fa480dd94f4fec7b8b026dbd0a524f7b9c786.tar.gz tor-5f0fa480dd94f4fec7b8b026dbd0a524f7b9c786.zip |
Merge branch 'maint-0.3.1'
Diffstat (limited to 'src/test/test_hs.c')
-rw-r--r-- | src/test/test_hs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/test_hs.c b/src/test/test_hs.c index 093c7ec35e..48acd91808 100644 --- a/src/test/test_hs.c +++ b/src/test/test_hs.c @@ -661,6 +661,7 @@ test_single_onion_poisoning(void *arg) char *dir2 = tor_strdup(get_fname_rnd("test_hs_dir2")); smartlist_t *services = smartlist_new(); char *poison_path = NULL; + char *err_msg = NULL; mock_options->HiddenServiceSingleHopMode = 1; mock_options->HiddenServiceNonAnonymousMode = 1; @@ -687,7 +688,6 @@ test_single_onion_poisoning(void *arg) /* Add port to service 1 */ service_1->ports = smartlist_new(); service_2->ports = smartlist_new(); - char *err_msg = NULL; rend_service_port_config_t *port1 = rend_service_parse_port_config("80", " ", &err_msg); tt_assert(port1); @@ -890,6 +890,7 @@ test_single_onion_poisoning(void *arg) rend_service_free(service_2); UNMOCK(get_options); tor_free(mock_options->DataDirectory); + tor_free(err_msg); } static rend_service_t * |