aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/gnunet-namestore.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-04-26 16:34:13 +0200
committerChristian Grothoff <christian@grothoff.org>2019-04-26 16:34:13 +0200
commit3cdfeee1bb9e42f5a6c9ace231f944ce97706957 (patch)
tree8139af1359c1223f7d672a1b0a1dea6aa244ed81 /src/namestore/gnunet-namestore.c
parent2b3e57a5122927bbd8a76689b540e6521066ae28 (diff)
downloadgnunet-3cdfeee1bb9e42f5a6c9ace231f944ce97706957.tar.gz
gnunet-3cdfeee1bb9e42f5a6c9ace231f944ce97706957.zip
reject . in labels
Diffstat (limited to 'src/namestore/gnunet-namestore.c')
-rw-r--r--src/namestore/gnunet-namestore.c11
1 files changed, 11 insertions, 0 deletions
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,
986 struct GNUNET_GNSRECORD_Data rd; 986 struct GNUNET_GNSRECORD_Data rd;
987 987
988 el = NULL; 988 el = NULL;
989 if ( (NULL != name) &&
990 (0 != strchr (name, '.')) )
991 {
992 fprintf (stderr,
993 _("Label `%s' contains `.' which is not allowed\n"),
994 name);
995 GNUNET_SCHEDULER_shutdown ();
996 ret = -1;
997 return;
998 }
999
989 if (NULL == ego) 1000 if (NULL == ego)
990 { 1001 {
991 if (NULL != ego_name) 1002 if (NULL != ego_name)