aboutsummaryrefslogtreecommitdiff
path: root/sbin/ping6
diff options
context:
space:
mode:
authorJacques Vidrine <nectar@FreeBSD.org>2002-09-09 16:06:41 +0000
committerJacques Vidrine <nectar@FreeBSD.org>2002-09-09 16:06:41 +0000
commit012b8a41116217d359670922d7caa6de483afbae (patch)
tree3a58cc85900475dff849cc5b4e8d64b9d7906c36 /sbin/ping6
parentef9d72e14c8083dc2da59661d45dd434b2fe0223 (diff)
Notes
Diffstat (limited to 'sbin/ping6')
-rw-r--r--sbin/ping6/ping6.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sbin/ping6/ping6.c b/sbin/ping6/ping6.c
index d9f49b9d2ecf..24176f0b2545 100644
--- a/sbin/ping6/ping6.c
+++ b/sbin/ping6/ping6.c
@@ -1029,6 +1029,8 @@ 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);