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

Diff of /rpms/djbdns/sme10/500-cutom-dnscache-maxloop.patch

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

Revision 1.1 by unnilennium, Wed Jul 12 03:39:09 2017 UTC Revision 1.2 by unnilennium, Wed Jul 12 16:43:25 2017 UTC
# Line 5  Line 5 
5    
6     NEWNAME:     NEWNAME:
7  -  if (++z->loop == 150) goto DIE;  -  if (++z->loop == 150) goto DIE;
8  +  if (++z->loop == 200) goto DIE;  +  if (++z->loop == QUERY_MAXLOOP) goto DIE;
9     d = z->name[z->level];     d = z->name[z->level];
10     dtype = z->level ? DNS_T_A : z->type;     dtype = z->level ? DNS_T_A : z->type;
11     dlen = dns_domain_length(d);     dlen = dns_domain_length(d);
# Line 14  Line 14 
14    
15     HAVEPACKET:     HAVEPACKET:
16  -  if (++z->loop == 150) goto DIE;  -  if (++z->loop == 150) goto DIE;
17  +  if (++z->loop == 200) goto DIE;  +  if (++z->loop == QUERY_MAXLOOP) goto DIE;
18     buf = z->qm->dt.packet;     buf = z->qm->dt.packet;
19     len = z->qm->dt.packetlen;     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_MAXLEVEL 10
27     #define QUERY_MAXALIAS 16
28     #define QUERY_MAXNS 16
29    +#define QUERY_MAXLOOP 160
30    
31     struct query {
32       unsigned int loop;


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

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