aboutsummaryrefslogtreecommitdiff
path: root/resolv
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-09-05 01:23:06 +0000
committerRoland McGrath <roland@gnu.org>2002-09-05 01:23:06 +0000
commit870d19de2b5812372f1285b627fa045cfff9f880 (patch)
tree787f2948883c5c6a0c3e4228cdbb57ada69a8946 /resolv
parent76ebfd759f3fe4616ddea11e58e5568b4662d813 (diff)
downloadglibc-870d19de2b5812372f1285b627fa045cfff9f880.zip
glibc-870d19de2b5812372f1285b627fa045cfff9f880.tar.gz
glibc-870d19de2b5812372f1285b627fa045cfff9f880.tar.bz2
2002-09-04 Roland McGrath <roland@redhat.com>
* resolv/nss_dns/dns-network.c (MAXPACKET): Increase minimum value from 1024 to 65536, to avoid buffer overrun.
Diffstat (limited to 'resolv')
-rw-r--r--resolv/nss_dns/dns-network.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/resolv/nss_dns/dns-network.c b/resolv/nss_dns/dns-network.c
index 8816653..774c868 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