mirror of
https://github.com/curl/curl.git
synced 2026-07-24 18:37:19 +03:00
include the server response in the error message when an FTP server gives
back a 530 after the password is provided, as it isn't necessary because of a bad user name or password.
This commit is contained in:
parent
9d84442409
commit
df59ca1a45
2 changed files with 14 additions and 2 deletions
|
|
@ -592,8 +592,11 @@ CURLcode Curl_ftp_connect(struct connectdata *conn)
|
|||
|
||||
if(ftpcode == 530) {
|
||||
/* 530 Login incorrect.
|
||||
(the username and/or the password are incorrect) */
|
||||
failf(data, "the username and/or the password are incorrect");
|
||||
(the username and/or the password are incorrect)
|
||||
or
|
||||
530 Sorry, the maximum number of allowed users are already connected
|
||||
*/
|
||||
failf(data, "not logged in: %s", &buf[4]);
|
||||
return CURLE_FTP_USER_PASSWORD_INCORRECT;
|
||||
}
|
||||
else if(ftpcode == 230) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue