summaryrefslogtreecommitdiffstats
path: root/usr.sbin/mrouted/mapper.c
diff options
context:
space:
mode:
authornectar <nectar@FreeBSD.org>2002-09-09 15:45:28 +0000
committernectar <nectar@FreeBSD.org>2002-09-09 15:45:28 +0000
commitbdb08fa9d19da90ff90e0b5e8da07ad1cfef1213 (patch)
tree7aae14533d9077b7ec771b13c1d2759150bcd268 /usr.sbin/mrouted/mapper.c
parent722d004d66f048223bd633f9ed9a0893adce6f70 (diff)
downloadFreeBSD-src-bdb08fa9d19da90ff90e0b5e8da07ad1cfef1213.zip
FreeBSD-src-bdb08fa9d19da90ff90e0b5e8da07ad1cfef1213.tar.gz
Check for FD_SET overruns.
Obtained from: NetBSD
Diffstat (limited to 'usr.sbin/mrouted/mapper.c')
-rw-r--r--usr.sbin/mrouted/mapper.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/mrouted/mapper.c b/usr.sbin/mrouted/mapper.c
index 0f09835..8fdbad0 100644
--- a/usr.sbin/mrouted/mapper.c
+++ b/usr.sbin/mrouted/mapper.c
@@ -943,6 +943,8 @@ int main(argc, argv)
struct timeval tv;
int count, recvlen, dummy = 0;
+ if (igmp_socket >= FD_SETSIZE)
+ log(LOG_ERR, 0, "descriptor too big");
FD_ZERO(&fds);
FD_SET(igmp_socket, &fds);
OpenPOWER on IntegriCloud