From 46f59b56f2dbf80d9ee66b420fffb78b63d7e8d1 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Thu, 19 Oct 2000 21:19:57 +0000 Subject: [PATCH] (process_rings): actually check the correct file descriptors git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9127 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/telnet/telnet/sys_bsd.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/appl/telnet/telnet/sys_bsd.c b/appl/telnet/telnet/sys_bsd.c index 4da77300e..4ee0628f3 100644 --- a/appl/telnet/telnet/sys_bsd.c +++ b/appl/telnet/telnet/sys_bsd.c @@ -774,11 +774,9 @@ process_rings(int netin, int returnValue = 0; static struct timeval TimeValue = { 0 }; - if (netin >= FD_SETSIZE - || netout >= FD_SETSIZE - || netex >= FD_SETSIZE - || ttyin >= FD_SETSIZE - || ttyout >= FD_SETSIZE) + if (net >= FD_SETSIZE + || tout >= FD_SETSIZE + || tin >= FD_SETSIZE) errx (1, "fd too large"); if (netout) {