aboutsummaryrefslogtreecommitdiff
path: root/src/ats-tool/gnunet-ats.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ats-tool/gnunet-ats.c')
-rw-r--r--src/ats-tool/gnunet-ats.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/ats-tool/gnunet-ats.c b/src/ats-tool/gnunet-ats.c
index 89200ce1d..2fd30c1a5 100644
--- a/src/ats-tool/gnunet-ats.c
+++ b/src/ats-tool/gnunet-ats.c
@@ -143,8 +143,8 @@ end (void *cls,
143 } 143 }
144 if (0 < pending) 144 if (0 < pending)
145 fprintf (stderr, _("%u address resolutions had a timeout\n"), pending); 145 fprintf (stderr, _("%u address resolutions had a timeout\n"), pending);
146 146 if (op_list_used || op_list_all)
147 fprintf (stderr, _("ATS returned results for %u addresses\n"), results); 147 fprintf (stderr, _("ATS returned results for %u addresses\n"), results);
148 ret = 0; 148 ret = 0;
149} 149}
150 150
@@ -423,6 +423,13 @@ testservice_ats (void *cls,
423 fprintf (stderr, _("No preference type given!\n")); 423 fprintf (stderr, _("No preference type given!\n"));
424 return; 424 return;
425 } 425 }
426 if (NULL == pid_str)
427 {
428 fprintf (stderr, _("No peer given!\n"));
429 return;
430 }
431
432
426 433
427 for (c = 0; c<strlen(type_str); c++) 434 for (c = 0; c<strlen(type_str); c++)
428 { 435 {