aboutsummaryrefslogtreecommitdiff
path: root/src/gns
diff options
context:
space:
mode:
authorSchanzenbach, Martin <mschanzenbach@posteo.de>2019-11-30 15:20:45 +0100
committerSchanzenbach, Martin <mschanzenbach@posteo.de>2019-11-30 15:20:45 +0100
commit3afe75da145140445aba265481b37d068f095879 (patch)
treeb8a0d6f14ff2eb9c1037c1940a59d987ed392b49 /src/gns
parent61efbfb56dde7db7ede7478817d5dbb0ae1f95c1 (diff)
downloadgnunet-3afe75da145140445aba265481b37d068f095879.tar.gz
gnunet-3afe75da145140445aba265481b37d068f095879.zip
invert ifdef guard
Diffstat (limited to 'src/gns')
-rw-r--r--src/gns/gnunet-service-gns_resolver.c4
-rw-r--r--src/gns/plugin_gnsrecord_gns.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/gns/gnunet-service-gns_resolver.c b/src/gns/gnunet-service-gns_resolver.c
index bb319633a..9792aff58 100644
--- a/src/gns/gnunet-service-gns_resolver.c
+++ b/src/gns/gnunet-service-gns_resolver.c
@@ -1710,7 +1710,7 @@ recursive_gns2dns_resolution (struct GNS_ResolverHandle *rh,
1710 n = GNUNET_DNSPARSER_parse_name (rd[i].data, 1710 n = GNUNET_DNSPARSER_parse_name (rd[i].data,
1711 rd[i].data_size, 1711 rd[i].data_size,
1712 &off); 1712 &off);
1713#ifndef LSD001 1713#ifdef LSD001
1714 ip = GNUNET_strdup (&rd[i].data[off]); 1714 ip = GNUNET_strdup (&rd[i].data[off]);
1715 off += strlen (ip) + 1; 1715 off += strlen (ip) + 1;
1716#else 1716#else
@@ -1837,7 +1837,7 @@ recursive_gns2dns_resolution (struct GNS_ResolverHandle *rh,
1837 (0 != rh->name_resolution_pos) ? "." : "", 1837 (0 != rh->name_resolution_pos) ? "." : "",
1838 ns); 1838 ns);
1839 GNUNET_free (ns); 1839 GNUNET_free (ns);
1840#ifndef LSD001 1840#ifdef LSD001
1841 /* the GNS name is UTF-8 and may include multibyte chars. 1841 /* the GNS name is UTF-8 and may include multibyte chars.
1842 * We have to convert the combined name to a DNS-compatible IDNA. 1842 * We have to convert the combined name to a DNS-compatible IDNA.
1843 */ 1843 */
diff --git a/src/gns/plugin_gnsrecord_gns.c b/src/gns/plugin_gnsrecord_gns.c
index 52c35ce10..38c3582c1 100644
--- a/src/gns/plugin_gnsrecord_gns.c
+++ b/src/gns/plugin_gnsrecord_gns.c
@@ -78,7 +78,7 @@ gns_value_to_string (void *cls,
78 GNUNET_free_non_null (ns); 78 GNUNET_free_non_null (ns);
79 return NULL; 79 return NULL;
80 } 80 }
81#ifndef LSD001 //DNS server IP/name must be UTF-8 81#ifdef LSD001 //DNS server IP/name must be UTF-8
82 ip = GNUNET_strdup((char*) &data[off]); 82 ip = GNUNET_strdup((char*) &data[off]);
83#else 83#else
84 // Must be IP or DNS name 84 // Must be IP or DNS name
@@ -226,7 +226,7 @@ gns_string_to_value (void *cls,
226 GNUNET_free (cpy); 226 GNUNET_free (cpy);
227 return GNUNET_SYSERR; 227 return GNUNET_SYSERR;
228 } 228 }
229#ifndef LSD001 //The DNS server location/name is in UTF-8 229#ifdef LSD001 //The DNS server location/name is in UTF-8
230 GNUNET_memcpy (&nsbuf[off], at, strlen (at) + 1); 230 GNUNET_memcpy (&nsbuf[off], at, strlen (at) + 1);
231 off += strlen (at) + 1; 231 off += strlen (at) + 1;
232#else 232#else