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)
downloadgnunet-82e8f0e1cd800fe8de0251aa06463af88435637f.tar.gz
gnunet-82e8f0e1cd800fe8de0251aa06463af88435637f.zip
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 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,
594 { 594 {
595 GPI_plugins_load (cfg); 595 GPI_plugins_load (cfg);
596 if (GNUNET_SYSERR == parse_hello_uri (put_uri)) 596 if (GNUNET_SYSERR == parse_hello_uri (put_uri))
597 {
597 fprintf (stderr, 598 fprintf (stderr,
598 _("Invalid URI `%s'\n"), 599 _("Invalid URI `%s'\n"),
599 put_uri); 600 put_uri);
601 GNUNET_SCHEDULER_shutdown ();
602 }
600 GNUNET_free (put_uri); 603 GNUNET_free (put_uri);
601 put_uri = NULL; 604 put_uri = NULL;
602 return; 605 return;