From 870d19de2b5812372f1285b627fa045cfff9f880 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 5 Sep 2002 01:23:06 +0000 Subject: 2002-09-04 Roland McGrath * resolv/nss_dns/dns-network.c (MAXPACKET): Increase minimum value from 1024 to 65536, to avoid buffer overrun. --- resolv/nss_dns/dns-network.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'resolv/nss_dns') diff --git a/resolv/nss_dns/dns-network.c b/resolv/nss_dns/dns-network.c index 88166531b3..774c868d2f 100644 --- a/resolv/nss_dns/dns-network.c +++ b/resolv/nss_dns/dns-network.c @@ -70,10 +70,10 @@ #define MAX_NR_ALIASES 48 -#if PACKETSZ > 1024 -#define MAXPACKET PACKETSZ +#if PACKETSZ > 65536 +# define MAXPACKET PACKETSZ #else -#define MAXPACKET 1024 +# define MAXPACKET 65536 #endif -- cgit 1.4.1