diff options
author | Ulrich Drepper <drepper@redhat.com> | 2002-08-24 22:29:11 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2002-08-24 22:29:11 +0000 |
commit | e2dced828ea26102bd9599acd9fc43bf944e37be (patch) | |
tree | e45f97a15d06e2f0fdc3a04d77dabb76fe436c15 /resolv/res_query.c | |
parent | 2a56ae9f1e8b0d054aa8244897f78384caa1c1ef (diff) | |
download | glibc-e2dced828ea26102bd9599acd9fc43bf944e37be.zip glibc-e2dced828ea26102bd9599acd9fc43bf944e37be.tar.gz glibc-e2dced828ea26102bd9599acd9fc43bf944e37be.tar.bz2 |
(MAXPACKET): Increase minimum value from 1024 to 65536, to avoid buffer overrun.
Diffstat (limited to 'resolv/res_query.c')
-rw-r--r-- | resolv/res_query.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/resolv/res_query.c b/resolv/res_query.c index 92a90d6..866a2bb 100644 --- a/resolv/res_query.c +++ b/resolv/res_query.c @@ -85,10 +85,10 @@ static const char rcsid[] = "$BINDId: res_query.c,v 8.20 2000/02/29 05:39:12 vix /* Options. Leave them on. */ /* #undef DEBUG */ -#if PACKETSZ > 1024 +#if PACKETSZ > 65536 #define MAXPACKET PACKETSZ #else -#define MAXPACKET 1024 +#define MAXPACKET 65536 #endif /* |