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:
parent
8765046a03
commit
3fb031ee91
1785
src/ba/ba2800.cpp
1785
src/ba/ba2800.cpp
File diff suppressed because it is too large
Load Diff
@ -1182,10 +1182,14 @@ bool TSocketClient::FtpSendFile(CONNID id, const char* remote, const char* local
|
|||||||
if (!ReadLine(id, response)) // 220 Welcome
|
if (!ReadLine(id, response)) // 220 Welcome
|
||||||
return ok;
|
return ok;
|
||||||
|
|
||||||
|
// Possono esserci due messaggi di benvenuto
|
||||||
|
ReadLine(id, response);
|
||||||
|
|
||||||
TSocket_connection& conn = *(TSocket_connection*)GetConnection(id);
|
TSocket_connection& conn = *(TSocket_connection*)GetConnection(id);
|
||||||
if (user==NULL || !*user)
|
if (user==NULL || !*user)
|
||||||
user = "anonimous";
|
user = "anonimous";
|
||||||
ok = FtpSendCommand(conn, "USER", user, &response); // 331 Please specify the password.
|
ok = FtpSendCommand(conn, "USER", user, &response); // 331 Please specify the password.
|
||||||
|
|
||||||
if (!ok || response[0] != '3')
|
if (!ok || response[0] != '3')
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user