From: foobar Date: Tue, 31 Oct 2000 00:00:26 +0000 (+0000) Subject: Fix the fix. X-Git-Tag: php-4.0.4RC3~426 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=55ccb5a35b04bce8566ff9d29c263726f60c8926;p=php Fix the fix. --- diff --git a/ext/ftp/ftp.c b/ext/ftp/ftp.c index 11966750bb..b81ff204e7 100644 --- a/ext/ftp/ftp.c +++ b/ext/ftp/ftp.c @@ -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; }