summaryrefslogtreecommitdiffstats
path: root/libexec/ftpd
diff options
context:
space:
mode:
authormharo <mharo@FreeBSD.org>1999-09-12 01:27:46 +0000
committermharo <mharo@FreeBSD.org>1999-09-12 01:27:46 +0000
commit73f4a09b0538205bd7ffdce5dbc15b8109db23e1 (patch)
treec7c14510f36d2c014b0894796704a67e65432994 /libexec/ftpd
parentb50a7124e76353975ac5bdeaedcf38b866b42f9b (diff)
downloadFreeBSD-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')
-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 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);
OpenPOWER on IntegriCloud