From 73f4a09b0538205bd7ffdce5dbc15b8109db23e1 Mon Sep 17 00:00:00 2001 From: mharo Date: Sun, 12 Sep 1999 01:27:46 +0000 Subject: 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 --- libexec/ftpd/ftpd.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libexec/ftpd') 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); -- cgit v1.1