summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/ftp/ftp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/ftp/ftp.c b/ext/ftp/ftp.c
index b81ff204e7..b2cf0d9fa5 100644
--- a/ext/ftp/ftp.c
+++ b/ext/ftp/ftp.c
@@ -543,7 +543,7 @@ ftp_get(ftpbuf_t *ftp, FILE *outfp, const char *path, ftptype_t type)
if (ferror(outfp))
goto bail;
- if (!ftp_getresp(ftp) || ftp->resp != 226)
+ if (!ftp_getresp(ftp) || (ftp->resp != 226 && ftp->resp != 250))
goto bail;
return 1;
@@ -606,7 +606,7 @@ ftp_put(ftpbuf_t *ftp, const char *path, FILE *infp, ftptype_t type)
data = data_close(data);
- if (!ftp_getresp(ftp) || ftp->resp != 226)
+ if (!ftp_getresp(ftp) || (ftp->resp != 226 && ftp->resp != 250))
goto bail;
return 1;