Patch level : 12.0 634

Files correlati     : ba
Commento            :
- Sistemato dninst per nuovo server
- Il nuovo server manda 2 messaggi di benvenuto che sballano la lettura delle response
This commit is contained in:
Mattia Tollari 2018-10-15 09:57:52 +02:00
parent 8765046a03
commit 3fb031ee91
2 changed files with 898 additions and 891 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1182,10 +1182,14 @@ bool TSocketClient::FtpSendFile(CONNID id, const char* remote, const char* local
if (!ReadLine(id, response)) // 220 Welcome
return ok;
// Possono esserci due messaggi di benvenuto
ReadLine(id, response);
TSocket_connection& conn = *(TSocket_connection*)GetConnection(id);
if (user==NULL || !*user)
user = "anonimous";
ok = FtpSendCommand(conn, "USER", user, &response); // 331 Please specify the password.
if (!ok || response[0] != '3')
return false;