summaryrefslogtreecommitdiffstats
path: root/usr.sbin/named/ns_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/named/ns_main.c')
-rw-r--r--usr.sbin/named/ns_main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/named/ns_main.c b/usr.sbin/named/ns_main.c
index 13576d7..d0d3951 100644
--- a/usr.sbin/named/ns_main.c
+++ b/usr.sbin/named/ns_main.c
@@ -1,6 +1,6 @@
#if !defined(lint) && !defined(SABER)
static char sccsid[] = "@(#)ns_main.c 4.55 (Berkeley) 7/1/91";
-static char rcsid[] = "$Id: ns_main.c,v 1.5 1996/01/01 08:44:53 peter Exp $";
+static char rcsid[] = "$Id: ns_main.c,v 1.6 1996/01/07 05:48:33 peter Exp $";
#endif /* not lint */
/*
@@ -656,7 +656,8 @@ main(argc, argv, envp)
for (udpcnt = 0; udpcnt < 42; udpcnt++) { /*XXX*/
int from_len = sizeof(from_addr);
- if ((n = recvfrom(dqp->dq_dfd, (char *)buf, sizeof(buf), 0,
+ if ((n = recvfrom(dqp->dq_dfd, (char *)buf,
+ MIN(PACKETSZ, sizeof buf), 0,
(struct sockaddr *)&from_addr, &from_len)) < 0)
{
#if defined(SPURIOUS_ECONNREFUSED)
OpenPOWER on IntegriCloud