mirror of
https://github.com/moparisthebest/curl
synced 2024-11-12 04:25:08 -05:00
Code 250 is okay as well as the previous 226-code after a successful file
transfer
This commit is contained in:
parent
1ef3600a07
commit
d9c41a0ffd
@ -423,8 +423,8 @@ CURLcode ftp_done(struct connectdata *conn)
|
|||||||
just performed: */
|
just performed: */
|
||||||
nread = GetLastResponse(data->firstsocket, buf, data);
|
nread = GetLastResponse(data->firstsocket, buf, data);
|
||||||
|
|
||||||
/* 226 Transfer complete */
|
/* 226 Transfer complete, 250 Requested file action okay, completed. */
|
||||||
if(strncmp(buf, "226", 3)) {
|
if(!strncmp(buf, "226", 3) && !strncmp(buf, "250", 3)) {
|
||||||
failf(data, "%s", buf+4);
|
failf(data, "%s", buf+4);
|
||||||
return CURLE_FTP_WRITE_ERROR;
|
return CURLE_FTP_WRITE_ERROR;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user