Index: net/url_request/url_request_new_ftp_job.cc |
=================================================================== |
--- net/url_request/url_request_new_ftp_job.cc (revision 25619) |
+++ net/url_request/url_request_new_ftp_job.cc (working copy) |
@@ -80,8 +80,9 @@ |
const std::string& scheme) { |
DCHECK_EQ(scheme, "ftp"); |
+ int port = request->url().IntPort(); |
if (request->url().has_port() && |
- !net::IsPortAllowedByFtp(request->url().IntPort())) |
+ !net::IsPortAllowedByFtp(port) && !net::IsPortAllowedByOverride(port)) |
return new URLRequestErrorJob(request, net::ERR_UNSAFE_PORT); |
DCHECK(request->context()); |