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:
parent
2c32bb90a4
commit
56916d1a73
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue