diff options
author | peter <peter@FreeBSD.org> | 1997-06-27 07:25:32 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1997-06-27 07:25:32 +0000 |
commit | 47492cc08d0e2630b8140cc5b25e635606858ad8 (patch) | |
tree | 4a0ba15135b768bdfb39308718e7a43d6d4bada2 /contrib/bind/res/res_send.c | |
parent | b13db018fbb01d60dabb34ce9bd3f06994fd81b7 (diff) | |
download | FreeBSD-src-47492cc08d0e2630b8140cc5b25e635606858ad8.zip FreeBSD-src-47492cc08d0e2630b8140cc5b25e635606858ad8.tar.gz |
Clean (trimmed down) import of bind-4.9.6 onto vendor branch. This is
to buy time to allow v8.1.1 to be done right rather than rushing it.
Diffstat (limited to 'contrib/bind/res/res_send.c')
-rw-r--r-- | contrib/bind/res/res_send.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/contrib/bind/res/res_send.c b/contrib/bind/res/res_send.c index da9b9ec..0e0dafd 100644 --- a/contrib/bind/res/res_send.c +++ b/contrib/bind/res/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.12 1996/10/08 04:51:06 vixie Exp $"; +static char rcsid[] = "$Id: res_send.c,v 8.13 1997/06/01 20:34:37 vixie Exp $"; #endif /* LIBC_SCCS and not lint */ /* change this to "0" @@ -601,6 +601,11 @@ read_len: if ((long) timeout.tv_sec <= 0) timeout.tv_sec = 1; timeout.tv_usec = 0; + if (s+1 > FD_SETSIZE) { + Perror(stderr, "s+1 > FD_SETSIZE", EMFILE); + res_close(); + goto next_ns; + } wait: FD_ZERO(&dsmask); FD_SET(s, &dsmask); |