Skip to content

Commit

Permalink
Fix null deref found by Michael Maclean
Browse files Browse the repository at this point in the history
  • Loading branch information
rlerdorf committed Nov 24, 2009
1 parent e91b12a commit bee4607
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/ftp/ftp.c
Expand Up @@ -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)) {
Expand Down

0 comments on commit bee4607

Please sign in to comment.