[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r22708 - gnunet/src/gns
From: |
gnunet |
Subject: |
[GNUnet-SVN] r22708 - gnunet/src/gns |
Date: |
Mon, 16 Jul 2012 22:35:29 +0200 |
Author: grothoff
Date: 2012-07-16 22:35:29 +0200 (Mon, 16 Jul 2012)
New Revision: 22708
Modified:
gnunet/src/gns/gnunet-gns-fcfsd.c
Log:
-clarify name rules
Modified: gnunet/src/gns/gnunet-gns-fcfsd.c
===================================================================
--- gnunet/src/gns/gnunet-gns-fcfsd.c 2012-07-16 18:58:55 UTC (rev 22707)
+++ gnunet/src/gns/gnunet-gns-fcfsd.c 2012-07-16 20:35:29 UTC (rev 22708)
@@ -544,6 +544,22 @@
switch (request->phase)
{
case RP_START:
+ if (NULL != strchr (request->domain_name, (int) '.'))
+ {
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ _("Domain name must not contain `.'\n"));
+ request->phase = RP_FAIL;
+ return fill_s_reply ("Domain name must not contain `.', sorry.",
+ request, connection);
+ }
+ if (NULL != strchr (request->domain_name, (int) '+'))
+ {
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ _("Domain name must not contain `+'\n"));
+ request->phase = RP_FAIL;
+ return fill_s_reply ("Domain name must not contain `+', sorry.",
+ request, connection);
+ }
request->phase = RP_LOOKUP;
request->qe = GNUNET_NAMESTORE_lookup_record (ns,
&fcfsd_zone,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r22708 - gnunet/src/gns,
gnunet <=