From 99f469f707d506d301268ca7efe959dba75d219b Mon Sep 17 00:00:00 2001 From: Rasmus Lerdorf Date: Tue, 24 Nov 2009 13:57:39 +0000 Subject: [PATCH] Fix null deref found by Michael Maclean --- ext/ftp/ftp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/ftp/ftp.c b/ext/ftp/ftp.c index 4bcea5e32a..64db45835d 100644 --- a/ext/ftp/ftp.c +++ b/ext/ftp/ftp.c @@ -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)) { -- 2.40.0