revert check for @; this does not seem right for names starting with it
authorSchanzenbach, Martin <mschanzenbach@posteo.de>
Fri, 17 May 2019 11:19:14 +0000 (13:19 +0200)
committerSchanzenbach, Martin <mschanzenbach@posteo.de>
Fri, 17 May 2019 11:19:14 +0000 (13:19 +0200)
src/util/dnsparser.c

index 0e830170ec7351e704e2781ae6736717227b1b4f..699f9d59292a52a1355a0021585d9cf9f396c6b8 100644 (file)
@@ -60,9 +60,6 @@ GNUNET_DNSPARSER_check_label (const char *label)
 
   if (NULL != strchr (label, '.'))
     return GNUNET_SYSERR; /* not a label! Did you mean GNUNET_DNSPARSER_check_name? */
-  if (0 == strcmp (label, "@"))
-    return GNUNET_SYSERR; /* '@' is reserved for the empty label,
-                             see #GNUNET_GNS_EMPTY_LABEL_AT */
   if (IDNA_SUCCESS != idna_to_ascii_8z (label, &output, IDNA_ALLOW_UNASSIGNED))
     return GNUNET_SYSERR;
   slen = strlen (output);