summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authornectar <nectar@FreeBSD.org>2002-09-09 16:43:18 +0000
committernectar <nectar@FreeBSD.org>2002-09-09 16:43:18 +0000
commitf005a7d8a019151f00fed1e56fd983935498ec67 (patch)
tree9c5890331a637818b0c83bf129dde8832e5e7677 /sbin
parent38c1241397d4842137e208a9bb1e3c901e533dd6 (diff)
downloadFreeBSD-src-f005a7d8a019151f00fed1e56fd983935498ec67.zip
FreeBSD-src-f005a7d8a019151f00fed1e56fd983935498ec67.tar.gz
Back out previous commit. I was a bit overzealous: the fd_set size is
calculated dynamically here.
Diffstat (limited to 'sbin')
-rw-r--r--sbin/ping6/ping6.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sbin/ping6/ping6.c b/sbin/ping6/ping6.c
index 24176f0..d9f49b9 100644
--- a/sbin/ping6/ping6.c
+++ b/sbin/ping6/ping6.c
@@ -1029,8 +1029,6 @@ main(argc, argv)
tv = &timeout;
} else
tv = NULL;
- if (s >= FD_SETSIZE)
- errx(1, "descriptor too big");
memset(fdmaskp, 0, fdmasks);
FD_SET(s, fdmaskp);
cc = select(s + 1, fdmaskp, NULL, NULL, tv);
OpenPOWER on IntegriCloud