From: Rasmus Lerdorf Date: Tue, 24 Nov 2009 13:57:39 +0000 (+0000) Subject: Fix null deref found by Michael Maclean X-Git-Tag: php-5.4.0alpha1~191^2~2354 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b558fe838b35ac03d88e6e8c35ccf5ca7634f52a;p=php Fix null deref found by Michael Maclean --- diff --git a/ext/ftp/ftp.c b/ext/ftp/ftp.c index b916d19063..cb2e145b98 100644 --- a/ext/ftp/ftp.c +++ b/ext/ftp/ftp.c @@ -1700,7 +1700,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)) {