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