The netkit version has a similar fix, with slightly different code.
Theirs is:
maxfd = net;
if (maxfd < tin) maxfd=tin;
if (maxfd < tout) maxfd=tout;
if ((c = select(maxfd+1, &ibits, &obits, &xbits,
I've also seen a version that hard-codes the maximum number of file
descriptors for the select.
Debarshi Ray wrote:
My favorite thought about this bug is that it is present in most of the
telnet flavours, and has been there for at least thirty years.
Atleast NetKit's telnet client
(ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/netkit-telnet-0.17.tar.gz)
does not seem to have this particular problem.
Happy hacking,
Debarshi
_______________________________________________
bug-inetutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-inetutils