From 18991635a69a078b52f6d605643c7f2253bfba27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Arreola=20Rodr=C3=ADguez?= Date: Thu, 27 Oct 2022 22:26:06 -0500 Subject: [PATCH] =?UTF-8?q?Agrego=20parche=20para=20c=C3=B3digo=20de=20err?= =?UTF-8?q?or=20durante=20autenticaci=C3=B3n.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ftp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ftp.c b/src/ftp.c index b90ade2..2252e05 100644 --- a/src/ftp.c +++ b/src/ftp.c @@ -414,6 +414,10 @@ int _ftp_session_internal_user_code (FTPSession *session) { session->passwd = NULL; } return FTP_SUCCESS; + } else if (session->last_code >= 530 && session->last_code < 540) { + session->estado = FTP_STATE_CONNECTED; + session->internal = FTP_INTERNAL_FREE; + return FTP_SUCCESS; } else { ftp_session_close_and_clean (session); return FTP_ERROR;