summaryrefslogtreecommitdiff
path: root/lib/libc/net
diff options
context:
space:
mode:
authorGuido van Rooij <guido@FreeBSD.org>1997-03-10 19:35:22 +0000
committerGuido van Rooij <guido@FreeBSD.org>1997-03-10 19:35:22 +0000
commit3c716c531d2e36766811d2cf67728edce8f9a553 (patch)
tree618429a315156af05bdf2bbd3d7fe54478b7614f /lib/libc/net
parentdd700cf50392cfe3f0d8596fd101eb9154b57f8d (diff)
Notes
Diffstat (limited to 'lib/libc/net')
-rw-r--r--lib/libc/net/res_send.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/libc/net/res_send.c b/lib/libc/net/res_send.c
index dcb0220f9bc2..f855556bfea1 100644
--- a/lib/libc/net/res_send.c
+++ b/lib/libc/net/res_send.c
@@ -55,7 +55,7 @@
#if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)res_send.c 8.1 (Berkeley) 6/4/93";
-static char rcsid[] = "$Id: res_send.c,v 8.9 1996/08/05 08:31:35 vixie Exp $";
+static char rcsid[] = "$Id: res_send.c,v 1.10 1996/08/30 21:13:42 peter Exp $";
#endif /* LIBC_SCCS and not lint */
/*
@@ -561,6 +561,11 @@ read_len:
if ((long) timeout.tv_sec <= 0)
timeout.tv_sec = 1;
timeout.tv_usec = 0;
+ if (s+1 > FD_SETSIZE) {
+ Perror(stderr, "res_send: too many files");
+ res_close();
+ goto next_ns;
+ }
wait:
FD_ZERO(&dsmask);
FD_SET(s, &dsmask);