summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSchanzenbach, Martin <mschanzenbach@posteo.de>2020-05-09 22:10:08 +0200
committerSchanzenbach, Martin <mschanzenbach@posteo.de>2020-05-09 22:10:08 +0200
commitada94c2742c8dd5a38ca88d47de6fb13ac2b83cb (patch)
tree52345410bb056dab757be4a6a3b4cecfa7fc8532
parent3da4b0d20d500b7a51f259033df88d6ac620bd6f (diff)
fail of LSD0001 is violated for GNS2DNS
-rw-r--r--src/gns/gnunet-service-gns_resolver.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gns/gnunet-service-gns_resolver.c b/src/gns/gnunet-service-gns_resolver.c
index 1d9fb902a..751cc226e 100644
--- a/src/gns/gnunet-service-gns_resolver.c
+++ b/src/gns/gnunet-service-gns_resolver.c
@@ -1759,7 +1759,13 @@ recursive_gns2dns_resolution (struct GNS_ResolverHandle *rh,
struct sockaddr_in6 v6;
if (GNUNET_GNSRECORD_TYPE_GNS2DNS != rd[i].record_type)
- continue;
+ {
+ /**
+ * Records other than GNS2DNS not allowed
+ */
+ fail_resolution (rh);
+ return;
+ }
off = 0;
n = GNUNET_DNSPARSER_parse_name (rd[i].data,
rd[i].data_size,