fail of LSD0001 is violated for GNS2DNS
authorSchanzenbach, Martin <mschanzenbach@posteo.de>
Sat, 9 May 2020 20:10:08 +0000 (22:10 +0200)
committerSchanzenbach, Martin <mschanzenbach@posteo.de>
Sat, 9 May 2020 20:10:08 +0000 (22:10 +0200)
src/gns/gnunet-service-gns_resolver.c

index 1d9fb902a7b4a0bd475fdd4c2141cd9735adeb0f..751cc226ebdbc05f64107c77b90f77e27e982a63 100644 (file)
@@ -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,