aboutsummaryrefslogtreecommitdiff
path: root/libexec/ftpd/ftpd.c
diff options
context:
space:
mode:
authorMichael Haro <mharo@FreeBSD.org>1999-09-12 01:27:46 +0000
committerMichael Haro <mharo@FreeBSD.org>1999-09-12 01:27:46 +0000
commit9db4bbf32a409396c0d7348bcff7c5c49336ef6e (patch)
treec163d40f6ff25bc597039141001056b553d4a41f /libexec/ftpd/ftpd.c
parentda600884bdd6284fe67304492f90be01f5d59121 (diff)
downloadsrc-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.c1
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);