Sophie

Sophie

distrib > * > 2008.0 > x86_64 > by-pkgid > 8e170c86c8c0b8b8368d7ed63a7758bb > files > 3

bind8-8.4.7-2mdv2008.0.src.rpm

--- bind-8.2/src/bin/host/host.c.host	Mon Jan 11 16:15:38 1999
+++ bind-8.2/src/bin/host/host.c	Wed Mar 31 10:51:54 1999
@@ -1310,6 +1310,7 @@
 
 		amtToRead = len;
 		cp = buf.qb2;
+		if (amtToRead > NS_PACKETSZ) amtToRead=NS_PACKETSZ;
 		while (amtToRead > 0 &&
 		       (numRead = read(sockFD, cp, amtToRead)) > 0) {
 			cp += numRead;