aboutsummaryrefslogtreecommitdiff
path: root/src/gns/gnunet-service-gns_interceptor.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-01-07 09:44:59 +0100
committerChristian Grothoff <christian@grothoff.org>2020-01-07 09:45:52 +0100
commitc0a6838a1b8a3ca2c73af04b8829d6736521cba1 (patch)
tree076148fca0a229738510bd023a3271127963383f /src/gns/gnunet-service-gns_interceptor.c
parente8533c8a41e3fb29e51200d643382c8d5f882e5e (diff)
downloadgnunet-c0a6838a1b8a3ca2c73af04b8829d6736521cba1.tar.gz
gnunet-c0a6838a1b8a3ca2c73af04b8829d6736521cba1.zip
allow GNS clients to control recursion depth limit
Diffstat (limited to 'src/gns/gnunet-service-gns_interceptor.c')
-rw-r--r--src/gns/gnunet-service-gns_interceptor.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gns/gnunet-service-gns_interceptor.c b/src/gns/gnunet-service-gns_interceptor.c
index dd97782ae..9d6636e84 100644
--- a/src/gns/gnunet-service-gns_interceptor.c
+++ b/src/gns/gnunet-service-gns_interceptor.c
@@ -34,6 +34,12 @@
34 34
35 35
36/** 36/**
37 * How deep do we allow recursions to go before we abort?
38 */
39#define MAX_RECURSION 256
40
41
42/**
37 * Handle to a DNS intercepted 43 * Handle to a DNS intercepted
38 * reslution request 44 * reslution request
39 */ 45 */
@@ -347,6 +353,7 @@ handle_dns_request (void *cls,
347 p->queries[0].type, 353 p->queries[0].type,
348 p->queries[0].name, 354 p->queries[0].name,
349 GNUNET_NO, 355 GNUNET_NO,
356 MAX_RECURSION,
350 &reply_to_dns, ilh); 357 &reply_to_dns, ilh);
351 return; 358 return;
352 } 359 }