From 82e8f0e1cd800fe8de0251aa06463af88435637f Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Mon, 18 Feb 2013 09:35:39 +0000 Subject: [PATCH] does not terminate on invalid uri --- src/peerinfo-tool/gnunet-peerinfo.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/peerinfo-tool/gnunet-peerinfo.c b/src/peerinfo-tool/gnunet-peerinfo.c index 6e1007e40..0cb434d89 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; -- 2.25.1