source:
npl/internetserver/djbdns/patches/0005-query.c-increase-recursion-depth-to-200.patch
@
9c06000
Last change on this file since 9c06000 was 37aaf89, checked in by , 3 years ago | |
---|---|
|
|
File size: 1.0 KB |
-
query.c
Description: query.c: increase recursion depth to 200. The recursion loop for CNAME resolution has an upper limit of 100 iterations by default. This has proven too small in some cases where large CDNs are concerned. This commit increases the limit to 200. . The patch was based on the OpenWrt fix, supplied by user ylxu. Author: Michael Orlitzky <michael@orlitzky.com> Date: Fri, 5 Aug 2016 09:13:11 -0400 Gentoo-Bug: 590548 OpenWrt-Bug: 5881 SMEServer-Bug: 8362 Last-Update: 2020-07-26 diff --git a/query.c b/query.c index 46cdc00..61fe708 100644
a b static int doit(struct query *z,int state) 203 203 204 204 205 205 NEWNAME: 206 if (++z->loop == 100) goto DIE;206 if (++z->loop == 200) goto DIE; 207 207 d = z->name[z->level]; 208 208 dtype = z->level ? DNS_T_A : z->type; 209 209 dlen = dns_domain_length(d); … … static int doit(struct query *z,int state) 449 449 450 450 451 451 HAVEPACKET: 452 if (++z->loop == 100) goto DIE;452 if (++z->loop == 200) goto DIE; 453 453 buf = z->dt.packet; 454 454 len = z->dt.packetlen; 455 455
Note: See TracBrowser
for help on using the repository browser.