aboutsummaryrefslogtreecommitdiff
path: root/src/util/dnsparser.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/dnsparser.c')
-rw-r--r--src/util/dnsparser.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util/dnsparser.c b/src/util/dnsparser.c
index 699f9d592..ec10e3ec3 100644
--- a/src/util/dnsparser.c
+++ b/src/util/dnsparser.c
@@ -60,6 +60,8 @@ GNUNET_DNSPARSER_check_label (const char *label)
60 60
61 if (NULL != strchr (label, '.')) 61 if (NULL != strchr (label, '.'))
62 return GNUNET_SYSERR; /* not a label! Did you mean GNUNET_DNSPARSER_check_name? */ 62 return GNUNET_SYSERR; /* not a label! Did you mean GNUNET_DNSPARSER_check_name? */
63 if (0 == strcmp (label, "@")) /* '@' is reserved for the empty label, see #GNUNET_GNS_EMPTY_LABEL_AT */
64 return GNUNET_SYSERR;
63 if (IDNA_SUCCESS != idna_to_ascii_8z (label, &output, IDNA_ALLOW_UNASSIGNED)) 65 if (IDNA_SUCCESS != idna_to_ascii_8z (label, &output, IDNA_ALLOW_UNASSIGNED))
64 return GNUNET_SYSERR; 66 return GNUNET_SYSERR;
65 slen = strlen (output); 67 slen = strlen (output);