Make sure to reset transflag back to zero upon succesfully using sendfile()

to transfer a file.

PR: 39362
Submitted by: TANAKA Hiroyuki <kattyo@abk.nu>
MFC after: 1 week
This commit is contained in:
dan 2002-07-03 00:12:00 +00:00
parent f450aaf037
commit 2bdfbbf7e6

View File

@ -1845,6 +1845,7 @@ send_data(FILE *instr, FILE *outstr, off_t blksize, off_t filesize, int isreg)
} }
} }
transflag = 0;
reply(226, "Transfer complete."); reply(226, "Transfer complete.");
return (0); return (0);
} }