aboutsummaryrefslogtreecommitdiff
path: root/src/peerinfo-tool
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-02-18 09:35:39 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-02-18 09:35:39 +0000
commit82e8f0e1cd800fe8de0251aa06463af88435637f (patch)
treefbaefa36f1fc1f1c12a7e7c8641ce260fc632999 /src/peerinfo-tool
parent96beb38ae750c04bca67509afce5d23359d18d91 (diff)
does not terminate on invalid uri
Diffstat (limited to 'src/peerinfo-tool')
-rw-r--r--src/peerinfo-tool/gnunet-peerinfo.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/peerinfo-tool/gnunet-peerinfo.c b/src/peerinfo-tool/gnunet-peerinfo.c
index 6e1007e40d..0cb434d891 100644
--- a/src/peerinfo-tool/gnunet-peerinfo.c
+++ b/src/peerinfo-tool/gnunet-peerinfo.c
@@ -594,9 +594,12 @@ state_machine (void *cls,
{
GPI_plugins_load (cfg);
if (GNUNET_SYSERR == parse_hello_uri (put_uri))
+ {
fprintf (stderr,
_("Invalid URI `%s'\n"),
- put_uri);
+ put_uri);
+ GNUNET_SCHEDULER_shutdown ();
+ }
GNUNET_free (put_uri);
put_uri = NULL;
return;