aboutsummaryrefslogtreecommitdiff
path: root/src/transport/test_transport_api_unreliability.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-07-15 11:46:26 +0000
committerChristian Grothoff <christian@grothoff.org>2011-07-15 11:46:26 +0000
commit7c71131a27b6838dfaf5f2d88db95fbcc0acc104 (patch)
tree0fdb3fbd035ef395b1e937b31695aff719581e35 /src/transport/test_transport_api_unreliability.c
parent9bb12b02825ad1a858aff4c748e4eef688147d91 (diff)
downloadgnunet-7c71131a27b6838dfaf5f2d88db95fbcc0acc104.tar.gz
gnunet-7c71131a27b6838dfaf5f2d88db95fbcc0acc104.zip
fix
Diffstat (limited to 'src/transport/test_transport_api_unreliability.c')
-rw-r--r--src/transport/test_transport_api_unreliability.c28
1 files changed, 17 insertions, 11 deletions
diff --git a/src/transport/test_transport_api_unreliability.c b/src/transport/test_transport_api_unreliability.c
index 8631fc347..c2c7b96a8 100644
--- a/src/transport/test_transport_api_unreliability.c
+++ b/src/transport/test_transport_api_unreliability.c
@@ -591,8 +591,13 @@ setup_peer (struct PeerContext *p, const char *cfgname)
591 591
592 GNUNET_assert (GNUNET_OK == GNUNET_CONFIGURATION_load (p->cfg, cfgname)); 592 GNUNET_assert (GNUNET_OK == GNUNET_CONFIGURATION_load (p->cfg, cfgname));
593 if (GNUNET_CONFIGURATION_have_value (p->cfg,"PATHS", "SERVICEHOME")) 593 if (GNUNET_CONFIGURATION_have_value (p->cfg,"PATHS", "SERVICEHOME"))
594 GNUNET_CONFIGURATION_get_value_string (p->cfg, "PATHS", "SERVICEHOME", &p->servicehome); 594 {
595 GNUNET_DISK_directory_remove (p->servicehome); 595 GNUNET_assert (GNUNET_OK ==
596 GNUNET_CONFIGURATION_get_value_string (p->cfg,
597 "PATHS", "SERVICEHOME",
598 &p->servicehome));
599 GNUNET_DISK_directory_remove (p->servicehome);
600 }
596 601
597 602
598#if START_ARM 603#if START_ARM
@@ -870,15 +875,16 @@ check ()
870 GNUNET_free(cert_file_p2); 875 GNUNET_free(cert_file_p2);
871 } 876 }
872 877
873 if ((p1.servicehome != NULL) && (p2.servicehome != NULL)) 878 if (p1.servicehome != NULL)
874 { 879 {
875 GNUNET_DISK_directory_remove (p1.servicehome); 880 GNUNET_DISK_directory_remove (p1.servicehome);
876 GNUNET_DISK_directory_remove (p2.servicehome); 881 GNUNET_free(p1.servicehome);
877 GNUNET_free(p1.servicehome); 882 }
878 GNUNET_free(p2.servicehome); 883 if (p2.servicehome != NULL)
879 } 884 {
880 return ok; 885 GNUNET_free(p2.servicehome);
881 886 GNUNET_DISK_directory_remove (p2.servicehome);
887 }
882 return ok; 888 return ok;
883} 889}
884 890