Fix the fix.

This commit is contained in:
foobar 2000-10-31 00:00:26 +00:00
parent 78194a47b7
commit 55ccb5a35b

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 || ftp->resp != 250) {
if (!ftp_getresp(ftp) || (ftp->resp != 226 && ftp->resp != 250)) {
free(ret);
return NULL;
}