summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-10-09 22:38:41 +0200
committerChristian Grothoff <christian@grothoff.org>2019-10-09 22:38:54 +0200
commitf412ffb84409079f236e7046344ef99fdcd02a9a (patch)
treef138b1e5f6b141a8e246c997770cbf2144074e93
parent5682fc71092a9d64654d83b5c8b45520bd32459b (diff)
fix primary issue from #5907
-rw-r--r--src/gns/gnunet-gns.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gns/gnunet-gns.c b/src/gns/gnunet-gns.c
index 5f4061f7d..510e46d14 100644
--- a/src/gns/gnunet-gns.c
+++ b/src/gns/gnunet-gns.c
@@ -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,