]> granicus.if.org Git - php/commitdiff
Fixed PR: 6730. And it is mentioned also in RFC 959 to be this way.
authorfoobar <sniper@php.net>
Fri, 27 Oct 2000 20:53:04 +0000 (20:53 +0000)
committerfoobar <sniper@php.net>
Fri, 27 Oct 2000 20:53:04 +0000 (20:53 +0000)
ext/ftp/ftp.c

index b2a091a7101175ea661bb29ce8f9d06fcc9ac6f2..11966750bb601a0a3535e677360a24326b738260 100644 (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;
        }