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

Last change on this file since 720681d 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
  • 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) 
    203203
    204204
    205205  NEWNAME:
    206   if (++z->loop == 100) goto DIE;
     206  if (++z->loop == 200) goto DIE;
    207207  d = z->name[z->level];
    208208  dtype = z->level ? DNS_T_A : z->type;
    209209  dlen = dns_domain_length(d);
    static int doit(struct query *z,int state) 
    449449
    450450
    451451  HAVEPACKET:
    452   if (++z->loop == 100) goto DIE;
     452  if (++z->loop == 200) goto DIE;
    453453  buf = z->dt.packet;
    454454  len = z->dt.packetlen;
    455455
Note: See TracBrowser for help on using the repository browser.