diff options
author | Rasmus Lerdorf <rasmus@php.net> | 2009-11-24 13:57:39 +0000 |
---|---|---|
committer | Rasmus Lerdorf <rasmus@php.net> | 2009-11-24 13:57:39 +0000 |
commit | 99f469f707d506d301268ca7efe959dba75d219b (patch) | |
tree | 6924ad2a9fa1932811756b8a5349f18bdee8386a /ext/ftp/ftp.c | |
parent | 18f32db810f41fe9b8c2232779793631e336a5a3 (diff) | |
download | php-git-99f469f707d506d301268ca7efe959dba75d219b.tar.gz |
Fix null deref found by Michael Maclean
Diffstat (limited to 'ext/ftp/ftp.c')
-rw-r--r-- | ext/ftp/ftp.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)) { |