mirror of
https://github.com/curl/curl.git
synced 2026-08-24 16:23:34 +03:00
Ralf S. Engelschall filed bug report #1757328
(http://curl.haxx.se/bug/view.cgi?id=1757328) and submitted a patch. It turns out we broke login to FTP servers that don't require (nor understand) PASS after the USER command
This commit is contained in:
parent
2ab854cafd
commit
e3377e637a
3 changed files with 14 additions and 3 deletions
|
|
@ -2372,7 +2372,7 @@ static CURLcode ftp_state_user_resp(struct connectdata *conn,
|
|||
(void)instate; /* no use for this yet */
|
||||
|
||||
/* some need password anyway, and others just return 2xx ignored */
|
||||
if((ftpcode == 331 || ftpcode/100 == 2) && (ftpc->state == FTP_USER)) {
|
||||
if((ftpcode == 331) && (ftpc->state == FTP_USER)) {
|
||||
/* 331 Password required for ...
|
||||
(the server requires to send the user's password too) */
|
||||
NBFTPSENDF(conn, "PASS %s", ftp->passwd?ftp->passwd:"");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue