aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2007-07-20 09:35:58 +0000
committerDaniel Stenberg <daniel@haxx.se>2007-07-20 09:35:58 +0000
commite3377e637a73edb44600083550f14ef64488cd10 (patch)
tree697ff521fa2e6cc44d5db79e234751834a479cc1 /lib
parent2ab854cafd572311f0d9b901170ec7b0d05141e8 (diff)
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
Diffstat (limited to 'lib')
-rw-r--r--lib/ftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index 932c8c8dc..a8a1e6644 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -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:"");