-LRN: fix peerinfo initialization
authorChristian Grothoff <christian@grothoff.org>
Tue, 6 Mar 2012 06:20:54 +0000 (06:20 +0000)
committerChristian Grothoff <christian@grothoff.org>
Tue, 6 Mar 2012 06:20:54 +0000 (06:20 +0000)
src/peerinfo-tool/gnunet-peerinfo.c

index b3af299449a376952969d74964371491b39b3590..22df4f7a1dbd6466700b5ce115bf1ba45061b03d 100644 (file)
@@ -539,7 +539,7 @@ run (void *cls, char *const *args, const char *cfgfile,
     FPRINTF (stderr, "%s", _("--put-uri and --get-uri are mutually exclusive\n"));
     return;
   }
-  if (put_uri != NULL || get_uri == GNUNET_YES)
+  if (put_uri != NULL || get_uri == GNUNET_YES || get_self != GNUNET_YES)
   {
     peerinfo = GNUNET_PEERINFO_connect (cfg);
     if (peerinfo == NULL)