summaryrefslogtreecommitdiffstats
path: root/usr.sbin/map-mbone
diff options
context:
space:
mode:
authoritojun <itojun@openbsd.org>2002-08-09 02:27:16 +0000
committeritojun <itojun@openbsd.org>2002-08-09 02:27:16 +0000
commit46bbf5f70ebe85277ddbcaa875f369247b00a6f5 (patch)
treefa8a2e4191df0703a61cfe1c53918ce06f8e87f6 /usr.sbin/map-mbone
parentCorrect the size arg to memset() so argv will be cleared correctly; art@ ok. (diff)
downloadwireguard-openbsd-46bbf5f70ebe85277ddbcaa875f369247b00a6f5.tar.xz
wireguard-openbsd-46bbf5f70ebe85277ddbcaa875f369247b00a6f5.zip
die if fd_set overruns.
Diffstat (limited to 'usr.sbin/map-mbone')
-rw-r--r--usr.sbin/map-mbone/mapper.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/map-mbone/mapper.c b/usr.sbin/map-mbone/mapper.c
index 930284698c9..f276868c126 100644
--- a/usr.sbin/map-mbone/mapper.c
+++ b/usr.sbin/map-mbone/mapper.c
@@ -939,6 +939,8 @@ int main(argc, argv)
int count, recvlen, dummy = 0;
FD_ZERO(&fds);
+ if (igmp_socket >= FD_SETSIZE)
+ log(LOG_ERR, 0, "descriptor too big");
FD_SET(igmp_socket, &fds);
tv.tv_sec = timeout;