From: Christian Grothoff Date: Wed, 9 Oct 2019 20:38:41 +0000 (+0200) Subject: fix primary issue from #5907 X-Git-Tag: v0.11.7~62^2~9 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f412ffb84409079f236e7046344ef99fdcd02a9a;p=oweals%2Fgnunet.git fix primary issue from #5907 --- 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,