summaryrefslogtreecommitdiff
path: root/lib/libc/net/res_query.c
diff options
context:
space:
mode:
authorJacques Vidrine <nectar@FreeBSD.org>2002-09-15 04:23:20 +0000
committerJacques Vidrine <nectar@FreeBSD.org>2002-09-15 04:23:20 +0000
commit7deb8a7ddd4693fef8940268a30a3927bfa104e6 (patch)
treecd6f170ff90f26885247cdc37745e2507f189152 /lib/libc/net/res_query.c
parent028e9e59021100fdff1428712c2318ec5f1ac1d1 (diff)
Notes
Diffstat (limited to 'lib/libc/net/res_query.c')
-rw-r--r--lib/libc/net/res_query.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libc/net/res_query.c b/lib/libc/net/res_query.c
index e67258620a51..4dde3e4d275e 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.