/[smeserver]/rpms/djbdns/sme9/500-cutom-dnscache-maxloop.patch
ViewVC logotype

Contents of /rpms/djbdns/sme9/500-cutom-dnscache-maxloop.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (show annotations) (download)
Wed Jul 19 20:43:04 2017 UTC (7 years, 4 months ago) by unnilennium
Branch: MAIN
CVS Tags: djbdns-1_05-11_el6_sme, HEAD
Changes since 1.2: +2 -3 lines
Error occurred while calculating annotation data.
* Wed Jul 19 2017 Jean-Philipe Pialasse <tests@pialasse.com> 1.05-11.sme
- improve short ttl cname resolution and glueless answer from akadns [SME: 8362]
- 500-cutom-dnscache-maxloop.patch: set QUERY_MAXLEVEL 5 QUERY_MAXLOOP 500 QUERY_MAXNS 16

1 --- djbdns-1.05/query.c 2012-08-30 22:14:28.885825918 +0800
2 +++ djbdns-1.05-new/query.c 2012-08-30 22:22:23.887727783 +0800
3 @@ -220,7 +217,7 @@
4
5
6 NEWNAME:
7 - if (++z->loop == 150) goto DIE;
8 + if (++z->loop == QUERY_MAXLOOP) goto DIE;
9 d = z->name[z->level];
10 dtype = z->level ? DNS_T_A : z->type;
11 dlen = dns_domain_length(d);
12 @@ -489,7 +486,7 @@
13
14
15 HAVEPACKET:
16 - if (++z->loop == 150) goto DIE;
17 + if (++z->loop == QUERY_MAXLOOP) goto DIE;
18 buf = z->qm->dt.packet;
19 len = z->qm->dt.packetlen;
20
21 diff -ru djbdns-1.05/query.h djbdns-1.05-new/query.h
22 --- djbdns-1.05/query.h 2001-02-11 22:11:45.000000000 +0100
23 +++ djbdns-1.05-new/query.h 2005-11-10 18:39:58.000000000 +0100
24 @@ -7,6 +7,7 @@
25 #define QUERY_MAXLEVEL 5
26 #define QUERY_MAXALIAS 16
27 #define QUERY_MAXNS 16
28 +#define QUERY_MAXLOOP 500
29
30 struct query {
31 unsigned int loop;

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed