diff options
author | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2019-05-17 19:18:41 +0200 |
---|---|---|
committer | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2019-05-17 19:18:41 +0200 |
commit | a42663c275df38d4f6fd10182a7b8f523bf5e41d (patch) | |
tree | 8905546d72dde1c685ffab78dcecda2e07c585d5 /src/util/dnsparser.c | |
parent | 523739685f22709fd611d7d729da3d5b57c77ce7 (diff) | |
download | gnunet-a42663c275df38d4f6fd10182a7b8f523bf5e41d.tar.gz gnunet-a42663c275df38d4f6fd10182a7b8f523bf5e41d.zip |
make single label resolution work (for pkey at least
Diffstat (limited to 'src/util/dnsparser.c')
-rw-r--r-- | src/util/dnsparser.c | 2 |
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); |