diff options
author | mharo <mharo@FreeBSD.org> | 1999-09-12 01:27:46 +0000 |
---|---|---|
committer | mharo <mharo@FreeBSD.org> | 1999-09-12 01:27:46 +0000 |
commit | 73f4a09b0538205bd7ffdce5dbc15b8109db23e1 (patch) | |
tree | c7c14510f36d2c014b0894796704a67e65432994 /libexec/ftpd/ftpd.c | |
parent | b50a7124e76353975ac5bdeaedcf38b866b42f9b (diff) | |
download | FreeBSD-src-73f4a09b0538205bd7ffdce5dbc15b8109db23e1.zip FreeBSD-src-73f4a09b0538205bd7ffdce5dbc15b8109db23e1.tar.gz |
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>
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 7ce5abb..52321ef 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); |