Fix null deref found by Michael Maclean

This commit is contained in:
Rasmus Lerdorf 2009-11-24 13:57:39 +00:00
parent 18f32db810
commit 99f469f707

View File

@ -1699,7 +1699,7 @@ ftp_nb_get(ftpbuf_t *ftp, php_stream *outstream, const char *path, ftptype_t typ
char arg[11];
if (ftp == NULL) {
goto bail;
return PHP_FTP_FAILED;
}
if (!ftp_type(ftp, type)) {