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:
qiuyiuestc 2010-07-24 12:21:07 +00:00
parent 2c32bb90a4
commit 56916d1a73
1 changed files with 1 additions and 0 deletions

View File

@ -542,6 +542,7 @@ err1:
} }
rt_sprintf(sbuf, "226 Finished.\r\n"); rt_sprintf(sbuf, "226 Finished.\r\n");
send(session->sockfd, sbuf, strlen(sbuf), 0); send(session->sockfd, sbuf, strlen(sbuf), 0);
close(fd);
closesocket(session->pasv_sockfd); closesocket(session->pasv_sockfd);
} }
else if (str_begin_with(buf, "STOR")==0) else if (str_begin_with(buf, "STOR")==0)