From 6a0073358f4d784f02eb8829cb16761ff56e8340 Mon Sep 17 00:00:00 2001
From: Daniel Stenberg <daniel@haxx.se>
Date: Mon, 18 Feb 2013 23:40:29 +0100
Subject: [PATCH] ftp_statemach_act: handle an init 230 response

...instead of the 220 we expect
---
 lib/ftp.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/lib/ftp.c b/lib/ftp.c
index dc9fc48..f55631e 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -2706,7 +2706,10 @@ static CURLcode ftp_statemach_act(struct connectdata *conn)
     /* we have now received a full FTP server response */
     switch(ftpc->state) {
     case FTP_WAIT220:
-      if(ftpcode != 220) {
+      if(ftpcode == 230)
+        /* 230 User logged in - already! */
+        return ftp_state_user_resp(conn, ftpcode, ftpc->state);
+      else if(ftpcode != 220) {
         failf(data, "Got a %03d ftp-server response when 220 was expected",
               ftpcode);
         return CURLE_FTP_WEIRD_SERVER_REPLY;
-- 
1.7.10.4

