diff options
| author | Guido van Rooij <guido@FreeBSD.org> | 1997-03-10 19:32:46 +0000 |
|---|---|---|
| committer | Guido van Rooij <guido@FreeBSD.org> | 1997-03-10 19:32:46 +0000 |
| commit | 1ab96f93446b66a2ced186fa98788b9aee83079b (patch) | |
| tree | 56c7bedef32caf4e81df70dd704f560a24e89816 | |
| parent | 704969a28c47c701f0ab47dc42b1bc6c305d5f1b (diff) | |
Notes
| -rw-r--r-- | lib/libc/net/res_send.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/libc/net/res_send.c b/lib/libc/net/res_send.c index 26a0e5172eff..12373d560b7a 100644 --- a/lib/libc/net/res_send.c +++ b/lib/libc/net/res_send.c @@ -56,7 +56,7 @@ #if defined(LIBC_SCCS) && !defined(lint) static char sccsid[] = "@(#)res_send.c 8.1 (Berkeley) 6/4/93"; static char orig_rcsid[] = "From: Id: res_send.c,v 8.12 1996/10/08 04:51:06 vixie Exp"; -static char rcsid[] = "$Id$"; +static char rcsid[] = "$Id: res_send.c,v 1.13 1997/02/22 15:00:35 peter Exp $"; #endif /* LIBC_SCCS and not lint */ /* @@ -574,6 +574,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); |
