]> granicus.if.org Git - php/commitdiff
Fix the fix.
authorfoobar <sniper@php.net>
Tue, 31 Oct 2000 00:00:26 +0000 (00:00 +0000)
committerfoobar <sniper@php.net>
Tue, 31 Oct 2000 00:00:26 +0000 (00:00 +0000)
ext/ftp/ftp.c

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