aboutsummaryrefslogtreecommitdiff
path: root/sbin/ping6
diff options
context:
space:
mode:
authorJacques Vidrine <nectar@FreeBSD.org>2002-09-09 16:43:18 +0000
committerJacques Vidrine <nectar@FreeBSD.org>2002-09-09 16:43:18 +0000
commitc3e3619908115036ec624afacbffed86dace30c1 (patch)
tree9c5890331a637818b0c83bf129dde8832e5e7677 /sbin/ping6
parentacc005185bae0c190e3156bac95d41264e9dd7cb (diff)
downloadsrc-c3e3619908115036ec624afacbffed86dace30c1.tar.gz
src-c3e3619908115036ec624afacbffed86dace30c1.zip
Back out previous commit. I was a bit overzealous: the fd_set size is
calculated dynamically here.
Notes
Notes: svn path=/head/; revision=103133
Diffstat (limited to 'sbin/ping6')
-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 24176f0b2545..d9f49b9d2ecf 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);