Bump loop detection limit to 500

PR:		216260
Submitted by:	tjd-freebsd@phlegethon.org
This commit is contained in:
David Thiel 2018-01-16 19:54:19 +00:00
parent 2a4a05ce15
commit e9595bcc43
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=459204
2 changed files with 21 additions and 1 deletions

View File

@ -3,7 +3,7 @@
PORTNAME?= djbdns
PORTVERSION?= ${DJBDNS_VER}
PORTREVISION?= 21
PORTREVISION?= 22
PORTEPOCH?= 1
CATEGORIES?= dns
MASTER_SITES= http://cr.yp.to/djbdns/ \

View File

@ -0,0 +1,20 @@
--- query.c.orig 2018-01-16 11:49:56.341179000 -0800
+++ query.c 2018-01-16 11:50:06.432700000 -0800
@@ -203,7 +203,7 @@
NEWNAME:
- if (++z->loop == 100) goto DIE;
+ if (++z->loop == 500) goto DIE;
d = z->name[z->level];
dtype = z->level ? DNS_T_A : z->type;
dlen = dns_domain_length(d);
@@ -449,7 +449,7 @@
HAVEPACKET:
- if (++z->loop == 100) goto DIE;
+ if (++z->loop == 500) goto DIE;
buf = z->dt.packet;
len = z->dt.packetlen;