commit abdcb212040256326f515214b1658ff516988bea
parent f459018a9d3dcaadcb5bcb3726330e00ef444f4d
Author: Matthias Wachs <wachs@net.in.tum.de>
Date: Tue, 9 Jul 2013 09:27:31 +0000
fixing output + additional peer id check
Diffstat:
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/src/ats-tool/gnunet-ats.c b/src/ats-tool/gnunet-ats.c
@@ -143,8 +143,8 @@ end (void *cls,
}
if (0 < pending)
fprintf (stderr, _("%u address resolutions had a timeout\n"), pending);
-
- fprintf (stderr, _("ATS returned results for %u addresses\n"), results);
+ if (op_list_used || op_list_all)
+ fprintf (stderr, _("ATS returned results for %u addresses\n"), results);
ret = 0;
}
@@ -423,6 +423,13 @@ testservice_ats (void *cls,
fprintf (stderr, _("No preference type given!\n"));
return;
}
+ if (NULL == pid_str)
+ {
+ fprintf (stderr, _("No peer given!\n"));
+ return;
+ }
+
+
for (c = 0; c<strlen(type_str); c++)
{