diff options
author | mmenke@chromium.org <mmenke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-13 20:34:21 +0000 |
---|---|---|
committer | mmenke@chromium.org <mmenke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-13 20:34:21 +0000 |
commit | 1967b09ecf28b09636f85a657b4752098467d2b7 (patch) | |
tree | 0133838004d490b1463b8a1ffe59bef59daa4d5f /net/url_request/url_request_http_job.cc | |
parent | b0dda9e2d11ba8a662d8671ede9d206b1a6b93ee (diff) | |
download | chromium_src-1967b09ecf28b09636f85a657b4752098467d2b7.zip chromium_src-1967b09ecf28b09636f85a657b4752098467d2b7.tar.gz chromium_src-1967b09ecf28b09636f85a657b4752098467d2b7.tar.bz2 |
No longer preconnect to unsafe ports. As UrlRequests were
never allowed to use these ports anyways, this wasn't a
security issue, but just doesn't seem like a good idea.
BUG=93326
Review URL: http://codereview.chromium.org/8898008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114261 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/url_request/url_request_http_job.cc')
-rw-r--r-- | net/url_request/url_request_http_job.cc | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/net/url_request/url_request_http_job.cc b/net/url_request/url_request_http_job.cc index 73cf26d..bf3df81 100644 --- a/net/url_request/url_request_http_job.cc +++ b/net/url_request/url_request_http_job.cc @@ -165,10 +165,6 @@ URLRequestJob* URLRequestHttpJob::Factory(URLRequest* request, const std::string& scheme) { DCHECK(scheme == "http" || scheme == "https"); - int port = request->url().IntPort(); - if (!IsPortAllowedByDefault(port) && !IsPortAllowedByOverride(port)) - return new URLRequestErrorJob(request, ERR_UNSAFE_PORT); - if (!request->context() || !request->context()->http_transaction_factory()) { NOTREACHED() << "requires a valid context"; |