From e2dced828ea26102bd9599acd9fc43bf944e37be Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 24 Aug 2002 22:29:11 +0000 Subject: (MAXPACKET): Increase minimum value from 1024 to 65536, to avoid buffer overrun. --- resolv/nss_dns/dns-host.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'resolv/nss_dns') diff --git a/resolv/nss_dns/dns-host.c b/resolv/nss_dns/dns-host.c index 77441f7589..fafe3435c0 100644 --- a/resolv/nss_dns/dns-host.c +++ b/resolv/nss_dns/dns-host.c @@ -92,10 +92,10 @@ #define MAX_NR_ALIASES 48 #define MAX_NR_ADDRS 48 -#if PACKETSZ > 1024 +#if PACKETSZ > 65536 # define MAXPACKET PACKETSZ #else -# define MAXPACKET 1024 +# define MAXPACKET 65536 #endif /* As per RFC 1034 and 1035 a host name cannot exceed 255 octets in length. */ #ifdef MAXHOSTNAMELEN -- cgit v1.2.3