diff options
author | peter <peter@FreeBSD.org> | 1997-03-12 11:10:54 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1997-03-12 11:10:54 +0000 |
commit | 214d331cf7e0d14525bb64b287160d25bd5aebc2 (patch) | |
tree | 3e50acd4cb80cf5647f8e0f509d02a2e1808b48b /lib/libc/net | |
parent | 9e8bec943073cf63f0c944ed459ba0dfb5d29da9 (diff) | |
download | FreeBSD-src-214d331cf7e0d14525bb64b287160d25bd5aebc2.zip FreeBSD-src-214d331cf7e0d14525bb64b287160d25bd5aebc2.tar.gz |
Fix problem with FD_SET* overflow reporting.. Perror() didn't have enough
args, and errno hasn't actually been set so it probably doesn't make sense
to report it via strerror().
Pointed out by: bde
Diffstat (limited to 'lib/libc/net')
-rw-r--r-- | lib/libc/net/res_send.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/libc/net/res_send.c b/lib/libc/net/res_send.c index 12373d5..986dc5b 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: res_send.c,v 1.13 1997/02/22 15:00:35 peter Exp $"; +static char rcsid[] = "$Id: res_send.c,v 1.14 1997/03/10 19:32:46 guido Exp $"; #endif /* LIBC_SCCS and not lint */ /* @@ -575,7 +575,11 @@ read_len: timeout.tv_sec = 1; timeout.tv_usec = 0; if (s+1 > FD_SETSIZE) { - Perror(stderr, "res_send: too many files"); +#ifdef DEBUG + if (_res.options & RES_DEBUG) + fprintf(stderr, + "res_send: too many files\n"); +#endif res_close(); goto next_ns; } |