From 6a2e21ec8cbaf7c719902e06953d9dbec629ad4f Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 9 Feb 2005 13:06:40 +0000 Subject: FTP code turned into state machine. Not completely yet, but a good start. The tag 'before_ftp_statemachine' was set just before this commit in case of future need. --- src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 1558d18f2..c1317ad27 100644 --- a/src/main.c +++ b/src/main.c @@ -21,7 +21,6 @@ * $Id$ ***************************************************************************/ -/* This is now designed to have its own local setup.h */ #include "setup.h" #include @@ -3726,7 +3725,8 @@ operate(struct Configurable *config, int argc, char *argv[]) } } } /* if CURLE_OK */ - else if(CURLE_FTP_USER_PASSWORD_INCORRECT == res) { + else if((CURLE_FTP_USER_PASSWORD_INCORRECT == res) || + (CURLE_LOGIN_DENIED == res)) { curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &response); if(response/100 == 5) -- cgit v1.2.3