From 3cdfeee1bb9e42f5a6c9ace231f944ce97706957 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 26 Apr 2019 16:34:13 +0200 Subject: [PATCH] reject . in labels --- src/namestore/gnunet-namestore.c | 11 +++++++++++ 1 file changed, 11 insertions(+) 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) -- 2.25.1