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); |
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; |