diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2002-08-09 02:27:17 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2002-08-09 02:27:17 +0000 |
commit | 19962d6344218659b839fe0c068b9a0affd339c3 (patch) | |
tree | 677a8d9d563971a3e7d0bda47377db490b7b3e13 /usr.sbin/map-mbone/mapper.c | |
parent | 5b8661f41f136285b6cb375253e371eadcb2deb2 (diff) |
die if fd_set overruns.
Diffstat (limited to 'usr.sbin/map-mbone/mapper.c')
-rw-r--r-- | usr.sbin/map-mbone/mapper.c | 2 |
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; |