summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-12-01 12:04:19 +0000
committerng0 <ng0@n0.is>2019-12-01 12:04:19 +0000
commit492a887121d7ddd5aa35450cf35cfd0fc3b5d239 (patch)
tree4a8015ba86de98f103f60fe589d41cf4025286a1
parentaede79a15277a74a799e958df97b2f7fd0a8b001 (diff)
parent520dce09be20c1961f0c419e46a773f3247683cc (diff)
Merge branch 'master' of gnunet.org:gnunet
-rw-r--r--src/gns/gnunet-gns.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gns/gnunet-gns.c b/src/gns/gnunet-gns.c
index fe51013ed..600a9c9a5 100644
--- a/src/gns/gnunet-gns.c
+++ b/src/gns/gnunet-gns.c
@@ -229,7 +229,6 @@ run (void *cls,
(void) cls;
(void) args;
(void) cfgfile;
- Idna_rc rc;
cfg = c;
to_task = NULL;
@@ -239,12 +238,15 @@ run (void *cls,
if (NULL != (colon = strchr (lookup_name, ':')))
*colon = '\0';
}
+#ifdef LSD001
+ Idna_rc rc;
/**
* If DNS compatibility is requested, we first verify that the
* lookup_name is in a DNS format. If yes, we convert it to UTF-8.
*/
if (GNUNET_YES == dns_compat)
{
+#endif
if (GNUNET_OK != GNUNET_DNSPARSER_check_name (lookup_name))
{
fprintf (stderr,
@@ -253,6 +255,7 @@ run (void *cls,
global_ret = 3;
return;
}
+#ifdef LSD001
if (IDNA_SUCCESS !=
(rc = idna_to_unicode_8z8z (lookup_name, &idna_name,
IDNA_ALLOW_UNASSIGNED)))
@@ -261,11 +264,12 @@ run (void *cls,
_ ("Failed to convert DNS IDNA name `%s' to UTF-8: %s\n"),
lookup_name,
idna_strerror (rc));
- global_ret = 3;
+ global_ret = 4;
return;
}
lookup_name = idna_name;
}
+#endif
if (GNUNET_YES !=
GNUNET_CLIENT_test (cfg,
"arm"))