Don't tear down the ftp connection if the maximum filesize was exceeded

and added tests 290 and 291 to check.
This commit is contained in:
Dan Fandrich 2007-03-30 01:13:47 +00:00
parent fbb1e49215
commit ffb11ad5c6
6 changed files with 104 additions and 1 deletions

View file

@ -3020,6 +3020,7 @@ CURLcode Curl_ftp_done(struct connectdata *conn, CURLcode status, bool premature
case CURLE_FTP_COULDNT_RETR_FILE:
case CURLE_FTP_COULDNT_STOR_FILE:
case CURLE_FTP_ACCESS_DENIED:
case CURLE_FILESIZE_EXCEEDED:
/* the connection stays alive fine even though this happened */
/* fall-through */
case CURLE_OK: /* doesn't affect the control connection's status */