source: npl/internetserver/djbdns/patches/0005-query.c-increase-recursion-depth-to-200.patch @ 26ffad7

Last change on this file since 26ffad7 was 37aaf89, checked in by Edwin Eefting <edwin@datux.nl>, 3 years ago

djbdns patches, so it works correctly with twitter etc

  • Property mode set to 100644
File size: 1.0 KB
RevLine 
[37aaf89]1Description: query.c: increase recursion depth to 200.
2 The recursion loop for CNAME resolution has an upper limit of 100
3 iterations by default. This has proven too small in some cases where
4 large CDNs are concerned. This commit increases the limit to 200.
5 .
6 The patch was based on the OpenWrt fix, supplied by user ylxu.
7Author: Michael Orlitzky <michael@orlitzky.com>
8Date: Fri, 5 Aug 2016 09:13:11 -0400
9Gentoo-Bug: 590548
10OpenWrt-Bug: 5881
11SMEServer-Bug: 8362
12Last-Update: 2020-07-26
13
14diff --git a/query.c b/query.c
15index 46cdc00..61fe708 100644
16--- a/query.c
17+++ b/query.c
18@@ -203,7 +203,7 @@ static int doit(struct query *z,int state)
19 
20 
21   NEWNAME:
22-  if (++z->loop == 100) goto DIE;
23+  if (++z->loop == 200) goto DIE;
24   d = z->name[z->level];
25   dtype = z->level ? DNS_T_A : z->type;
26   dlen = dns_domain_length(d);
27@@ -449,7 +449,7 @@ static int doit(struct query *z,int state)
28 
29 
30   HAVEPACKET:
31-  if (++z->loop == 100) goto DIE;
32+  if (++z->loop == 200) goto DIE;
33   buf = z->dt.packet;
34   len = z->dt.packetlen;
35 
Note: See TracBrowser for help on using the repository browser.