]> granicus.if.org Git - php/commitdiff
Fix null deref found by Michael Maclean
authorRasmus Lerdorf <rasmus@php.net>
Tue, 24 Nov 2009 13:57:39 +0000 (13:57 +0000)
committerRasmus Lerdorf <rasmus@php.net>
Tue, 24 Nov 2009 13:57:39 +0000 (13:57 +0000)
ext/ftp/ftp.c

index 4bcea5e32a7d5e26c3c4d672dcbec97f0b1b5aec..64db45835d0aafd4ece6f1fec86c3abc63418f58 100644 (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)) {