Skip to content
Snippets Groups Projects
Unverified Commit fdd368d6 authored by teor's avatar teor
Browse files

Remove a double-free in test_single_onion_poisoning

We were freeing both dir{1,2} directly, and service_{1,2}->directory via
rend_service_free, even though they are the same pointer.
parent c100c5c6
No related branches found
No related tags found
No related merge requests found
......@@ -570,8 +570,8 @@ test_single_onion_poisoning(void *arg)
tt_assert(ret == 0);
}
service_1->directory = dir1;
service_2->directory = dir2;
service_1->directory = tor_strdup(dir1);
service_2->directory = tor_strdup(dir2);
/* The services own the directory pointers now */
dir1 = dir2 = NULL;
/* Add port to service 1 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment