summaryrefslogtreecommitdiff
path: root/ext/ftp/ftp.c
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2000-10-27 20:53:04 +0000
committerfoobar <sniper@php.net>2000-10-27 20:53:04 +0000
commitb45d265c54aaff0da62f8966a79afc5a4f116e6e (patch)
treed2418605d06498b279e43e532958d2ba1ed588ac /ext/ftp/ftp.c
parent11af318a6213a71b09d564ef0ba249db980fa986 (diff)
downloadphp-git-b45d265c54aaff0da62f8966a79afc5a4f116e6e.tar.gz
Fixed PR: 6730. And it is mentioned also in RFC 959 to be this way.
Diffstat (limited to 'ext/ftp/ftp.c')
-rw-r--r--ext/ftp/ftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/ftp/ftp.c b/ext/ftp/ftp.c
index b2a091a710..11966750bb 100644
--- a/ext/ftp/ftp.c
+++ b/ext/ftp/ftp.c
@@ -1204,7 +1204,7 @@ ftp_genlist(ftpbuf_t *ftp, const char *cmd, const char *path)
fclose(tmpfp);
- if (!ftp_getresp(ftp) || ftp->resp != 226) {
+ if (!ftp_getresp(ftp) || ftp->resp != 226 || ftp->resp != 250) {
free(ret);
return NULL;
}