From: Christian Grothoff Date: Fri, 26 Apr 2019 14:34:13 +0000 (+0200) Subject: reject . in labels X-Git-Tag: v0.11.4~86 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3cdfeee1bb9e42f5a6c9ace231f944ce97706957;p=oweals%2Fgnunet.git reject . in labels --- diff --git a/src/namestore/gnunet-namestore.c b/src/namestore/gnunet-namestore.c index 470716f43..34bbf0111 100644 --- a/src/namestore/gnunet-namestore.c +++ b/src/namestore/gnunet-namestore.c @@ -986,6 +986,17 @@ identity_cb (void *cls, struct GNUNET_GNSRECORD_Data rd; el = NULL; + if ( (NULL != name) && + (0 != strchr (name, '.')) ) + { + fprintf (stderr, + _("Label `%s' contains `.' which is not allowed\n"), + name); + GNUNET_SCHEDULER_shutdown (); + ret = -1; + return; + } + if (NULL == ego) { if (NULL != ego_name)