-disable for now
[oweals/gnunet.git] / src / gns / gnunet-gns.c
index c7cc129783eea221537c34892c77d0169bd0a645..a54204283ca71a3abee0c0ca43fa543fbbdbe5e5 100644 (file)
@@ -242,7 +242,7 @@ run (void *cls, char *const *args, const char *cfgfile,
     if (!raw)
       GNUNET_log (GNUNET_ERROR_TYPE_INFO,
                   "No private zone key file name specified in configuration!\n");
-    shorten_key = NULL;
+    private_key = NULL;
   }
   else
   {
@@ -290,7 +290,7 @@ run (void *cls, char *const *args, const char *cfgfile,
     return;
   }
   
-  if (NULL != shorten_name)
+  if ((NULL != shorten_name) && (NULL != shorten_zone) && (NULL != private_zone))
   {
     shorten_request = GNUNET_GNS_shorten_zone (gns, shorten_name,
                              private_zone,
@@ -335,6 +335,7 @@ run (void *cls, char *const *args, const char *cfgfile,
       GNUNET_log (GNUNET_ERROR_TYPE_INFO,
                  "Please specify lookup, shorten or authority operation!\n");
     GNUNET_SCHEDULER_add_now (&do_shutdown, NULL);
+    return;
   }
 
   shutdown_task = GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL,