aboutsummaryrefslogtreecommitdiff
path: root/src/nat/test_stun.c
diff options
context:
space:
mode:
authorBruno Cabral <bcabral@uw.edu>2015-08-27 05:25:57 +0000
committerBruno Cabral <bcabral@uw.edu>2015-08-27 05:25:57 +0000
commit6e1bde4fb5a4c4c8a88fa2470b69e95e537f6ab8 (patch)
treedae3ea1c836579c74313e61b9c32fb97f1268435 /src/nat/test_stun.c
parent7c872ff3d58a3e75682dd2375058903ea233265f (diff)
downloadgnunet-6e1bde4fb5a4c4c8a88fa2470b69e95e537f6ab8.tar.gz
gnunet-6e1bde4fb5a4c4c8a88fa2470b69e95e537f6ab8.zip
Fix review . PATCH 1/3
Diffstat (limited to 'src/nat/test_stun.c')
-rw-r--r--src/nat/test_stun.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/nat/test_stun.c b/src/nat/test_stun.c
index 3988dc053..f14661969 100644
--- a/src/nat/test_stun.c
+++ b/src/nat/test_stun.c
@@ -241,7 +241,12 @@ main (int argc, char *const argv[])
241 fn, 241 fn,
242 "gnunet-service-resolver", 242 "gnunet-service-resolver",
243 "-c", "test_stun.conf", NULL); 243 "-c", "test_stun.conf", NULL);
244 GNUNET_assert (NULL != proc); 244
245 if (NULL != proc)
246 {
247 GNUNET_log (GNUNET_ERROR_TYPE_INFO, "This test was unable to start gnunet-service-resolver, and it is required to run ...\n");
248 exit(1);
249 }
245 250
246 GNUNET_PROGRAM_run (3, argv_prog, "test-stun", "nohelp", options, &run, NULL); 251 GNUNET_PROGRAM_run (3, argv_prog, "test-stun", "nohelp", options, &run, NULL);
247 252
@@ -253,6 +258,7 @@ main (int argc, char *const argv[])
253 GNUNET_OS_process_wait (proc); 258 GNUNET_OS_process_wait (proc);
254 GNUNET_OS_process_destroy (proc); 259 GNUNET_OS_process_destroy (proc);
255 proc = NULL; 260 proc = NULL;
261 GNUNET_free (fn);
256 262
257 263
258 return ret; 264 return ret;