diff options
Diffstat (limited to 'lib/libc/net/res_query.c')
-rw-r--r-- | lib/libc/net/res_query.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libc/net/res_query.c b/lib/libc/net/res_query.c index e672586..4dde3e4 100644 --- a/lib/libc/net/res_query.c +++ b/lib/libc/net/res_query.c @@ -90,7 +90,11 @@ __FBSDID("$FreeBSD$"); #include "res_config.h" -#define MAXPACKET 65536 +#if PACKETSZ > 1024 +#define MAXPACKET PACKETSZ +#else +#define MAXPACKET 1024 +#endif /* * Formulate a normal query, send, and await answer. |