From 0849c18499d734e3d802a33bbbb3c4212d81a6d2 Mon Sep 17 00:00:00 2001 From: Dan Moschuk Date: Wed, 3 Jul 2002 00:12:00 +0000 Subject: [PATCH] Make sure to reset transflag back to zero upon succesfully using sendfile() to transfer a file. PR: 39362 Submitted by: TANAKA Hiroyuki MFC after: 1 week --- libexec/ftpd/ftpd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c index e628d66c6478..7e5496b640ca 100644 --- a/libexec/ftpd/ftpd.c +++ b/libexec/ftpd/ftpd.c @@ -1845,6 +1845,7 @@ send_data(FILE *instr, FILE *outstr, off_t blksize, off_t filesize, int isreg) } } + transflag = 0; reply(226, "Transfer complete."); return (0); }