- moved timeout handling responsibility from for nat tests from caller to the library
[oweals/gnunet.git] / src / namecache / gnunet-namecache.c
index 61c7d909077631b58f8ad1a811c1488bd297b156..4215af642b090db5e269fec1954886143400e279 100644 (file)
@@ -197,9 +197,18 @@ run (void *cls, char *const *args, const char *cfgfile,
     GNUNET_SCHEDULER_shutdown ();
     return;
   }
+  if (NULL == name)
+  {
+    fprintf (stderr,
+             _("You must specify a name\n"));
+    return;
+  }
+
+
   GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL,
                                 &do_shutdown,
                                 NULL);
+  ns = GNUNET_NAMECACHE_connect (cfg);
   GNUNET_GNSRECORD_query_from_public_key (&pubkey,
                                           name,
                                           &dhash);