ftpd now eventually times out if a ftp client does:
authorbitblt <bitblt@openbsd.org>
Sat, 7 Dec 1996 09:00:18 +0000 (09:00 +0000)
committerbitblt <bitblt@openbsd.org>
Sat, 7 Dec 1996 09:00:18 +0000 (09:00 +0000)
commitc5d07883a34bbdfafdd737fc1da2d70b73c3b9b0
tree678fe64cc256841c4fa9ee20763616620b94de25
parentcc47f385be82ce28c0b4142513dc78a0e4e2ca78
ftpd now eventually times out if a ftp client does:
pasv
list
and then crashes.
The timeout should only apply the the accept(), so that transfers can
take as long as necessary to complete.
Thanks to Theo for moving toolong() to extern.h so that it can be used
in ftpd.c as well as in ftpcmd.y.
libexec/ftpd/extern.h
libexec/ftpd/ftpcmd.y
libexec/ftpd/ftpd.c