mirror of
https://github.com/php/php-src.git
synced 2024-09-22 18:37:25 +00:00
Fixed PR: 6730. And it is mentioned also in RFC 959 to be this way.
This commit is contained in:
parent
11af318a62
commit
b45d265c54
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user