summaryrefslogtreecommitdiff
path: root/src/gns/gnunet-service-gns_resolver.c
diff options
context:
space:
mode:
authorMartin Schanzenbach <schanzen@gnunet.org>2022-02-03 18:12:10 +0100
committerMartin Schanzenbach <schanzen@gnunet.org>2022-02-03 18:12:10 +0100
commit3d72be07448fd435640c6d0fdc2859601319d07e (patch)
tree253ed9212019d08725166300f449645e34c463b1 /src/gns/gnunet-service-gns_resolver.c
parent3146c65c67b93ce4eb5bf27775167fde65f5e3c4 (diff)
GNS: Introduce CRITICAL flag. Fixes #7169
Diffstat (limited to 'src/gns/gnunet-service-gns_resolver.c')
-rw-r--r--src/gns/gnunet-service-gns_resolver.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gns/gnunet-service-gns_resolver.c b/src/gns/gnunet-service-gns_resolver.c
index 51e650b4f..f232fb272 100644
--- a/src/gns/gnunet-service-gns_resolver.c
+++ b/src/gns/gnunet-service-gns_resolver.c
@@ -2393,12 +2393,17 @@ handle_gns_resolution_result (void *cls,
&rd[0]);
return;
- default:
+ case GNUNET_GNSRECORD_TYPE_GNS2DNS:
if (GNUNET_OK ==
recursive_gns2dns_resolution (rh,
rd_count,
rd))
return;
+ default:
+ if (GNUNET_YES != GNUNET_GNSRECORD_is_critical (rd[0].record_type))
+ return;
+ GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
+ _ ("Unable to process critical delegation record\n"));
break;
}
fail: