mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-26 17:18:24 +00:00
file should be closed after sending finished in ftp server
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@813 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
@@ -542,6 +542,7 @@ err1:
|
||||
}
|
||||
rt_sprintf(sbuf, "226 Finished.\r\n");
|
||||
send(session->sockfd, sbuf, strlen(sbuf), 0);
|
||||
close(fd);
|
||||
closesocket(session->pasv_sockfd);
|
||||
}
|
||||
else if (str_begin_with(buf, "STOR")==0)
|
||||
|
||||
Reference in New Issue
Block a user