Changeset 82842 in vbox for trunk/src/VBox/Runtime/generic
- Timestamp:
- Jan 23, 2020 10:16:23 AM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 135812
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/generic/ftp-server.cpp
r82840 r82842 2035 2035 if (RT_SUCCESS(rc)) 2036 2036 { 2037 if ( pClient->pDataConn)2037 if (RT_SUCCESS(rc)) 2038 2038 { 2039 /* Note: Data connection gets created when the PORT command was sent. */ 2040 rc = rtFtpServerDataConnStart(pClient->pDataConn, rtFtpServerDataConnFileWriteThread, cArgs, apcszArgs); 2041 if (RT_SUCCESS(rc)) 2042 rc = rtFtpServerSendReplyRc(pClient, RTFTPSERVER_REPLY_FILE_STS_OK_OPENING_DATA_CONN); 2039 if (pClient->pDataConn == NULL) 2040 { 2041 rc = rtFtpServerDataConnCreate(pClient, &pClient->pDataConn); 2042 if (RT_SUCCESS(rc)) 2043 rc = rtFtpServerDataConnStart(pClient->pDataConn, rtFtpServerDataConnFileWriteThread, cArgs, apcszArgs); 2044 2045 int rc2 = rtFtpServerSendReplyRc( pClient, RT_SUCCESS(rc) 2046 ? RTFTPSERVER_REPLY_DATACONN_ALREADY_OPEN 2047 : RTFTPSERVER_REPLY_CANT_OPEN_DATA_CONN); 2048 AssertRC(rc2); 2049 } 2050 else 2051 { 2052 int rc2 = rtFtpServerSendReplyRc(pClient, RTFTPSERVER_REPLY_DATACONN_ALREADY_OPEN); 2053 AssertRC(rc2); 2054 } 2043 2055 } 2044 2056 else 2045 rc = VERR_FTP_DATA_CONN_NOT_FOUND; 2057 { 2058 int rc2 = rtFtpServerSendReplyRc(pClient, RTFTPSERVER_REPLY_CONN_REQ_FILE_ACTION_NOT_TAKEN); 2059 AssertRC(rc2); 2060 } 2046 2061 } 2047 2062
Note:
See TracChangeset
for help on using the changeset viewer.