From f412ffb84409079f236e7046344ef99fdcd02a9a Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 9 Oct 2019 22:38:41 +0200 Subject: [PATCH] fix primary issue from #5907 --- src/gns/gnunet-gns.c | 6 ++++++ 1 file changed, 6 insertions(+) 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, -- 2.25.1