Fixed PR: 6730. And it is mentioned also in RFC 959 to be this way.

This commit is contained in:
foobar 2000-10-27 20:53:04 +00:00
parent 11af318a62
commit b45d265c54

View File

@ -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;
}