fix primary issue from #5907
authorChristian Grothoff <christian@grothoff.org>
Wed, 9 Oct 2019 20:38:41 +0000 (22:38 +0200)
committerChristian Grothoff <christian@grothoff.org>
Wed, 9 Oct 2019 20:38:54 +0000 (22:38 +0200)
src/gns/gnunet-gns.c

index 5f4061f7dff6669caaa5c282b368b291d00c1d2e..510e46d142395a061af014ea62cb9f9bb27bed03 100644 (file)
@@ -201,6 +201,12 @@ run (void *cls,
 
   cfg = c;
   to_task = NULL;
+  {
+    char *colon;
+
+    if (NULL != (colon = strchr (lookup_name, ':')))
+      *colon = '\0';
+  }
   if (GNUNET_OK != GNUNET_DNSPARSER_check_name (lookup_name))
   {
     fprintf (stderr,