Skip to content

Commit

Permalink
Fix bug #72771: ftps:// opendir wrapper is vulnerable to protocol dow…
Browse files Browse the repository at this point in the history
…ngrade attack
  • Loading branch information
smalyshev committed Aug 17, 2016
1 parent 639f7fd commit e018ff0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ext/standard/ftp_fopen_wrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,8 @@ static php_stream *php_ftp_fopen_connect(php_stream_wrapper *wrapper, const char
/* get the response */
result = GET_FTP_RESULT(stream);
if (result != 334) {
use_ssl = 0;
php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "Server doesn't support FTPS.");
goto connect_errexit;
} else {
/* we must reuse the old SSL session id */
/* if we talk to an old ftpd-ssl */
Expand Down

0 comments on commit e018ff0

Please sign in to comment.