diff options
author | Michael Haro <mharo@FreeBSD.org> | 1999-09-12 01:27:46 +0000 |
---|---|---|
committer | Michael Haro <mharo@FreeBSD.org> | 1999-09-12 01:27:46 +0000 |
commit | 9db4bbf32a409396c0d7348bcff7c5c49336ef6e (patch) | |
tree | c163d40f6ff25bc597039141001056b553d4a41f /libexec/ftpd/ftpd.c | |
parent | da600884bdd6284fe67304492f90be01f5d59121 (diff) | |
download | src-9db4bbf32a409396c0d7348bcff7c5c49336ef6e.tar.gz src-9db4bbf32a409396c0d7348bcff7c5c49336ef6e.zip |
When a STAT command is sent to ftpd as an out-of-band transmission during
a file transfer, the command was mishandled on every other receipt of the
command.
PR: 13261
Submitted by: Ian Lepore <ian@plutotech.com>
Notes
Notes:
svn path=/head/; revision=51192
Diffstat (limited to 'libexec/ftpd/ftpd.c')
-rw-r--r-- | libexec/ftpd/ftpd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c index 7ce5abb5e2ff..52321ef446a1 100644 --- a/libexec/ftpd/ftpd.c +++ b/libexec/ftpd/ftpd.c @@ -1968,6 +1968,7 @@ myoob(signo) longjmp(urgcatch, 1); } if (strcmp(cp, "STAT\r\n") == 0) { + tmpline[0] = '\0'; if (file_size != (off_t) -1) reply(213, "Status: %qd of %qd bytes transferred", byte_count, file_size); |