summaryrefslogtreecommitdiffstats
path: root/net/test
diff options
context:
space:
mode:
authorakalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-27 05:15:11 +0000
committerakalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-27 05:15:11 +0000
commitc67895dc60ddd5b37c5a9a2a5510548f642ab11f (patch)
tree9482f808d37284fd829f28ccda3f23effc5218cf /net/test
parent2c4394348fa3e8b986f2012d0e5e5c63a9cf2af3 (diff)
downloadchromium_src-c67895dc60ddd5b37c5a9a2a5510548f642ab11f.zip
chromium_src-c67895dc60ddd5b37c5a9a2a5510548f642ab11f.tar.gz
chromium_src-c67895dc60ddd5b37c5a9a2a5510548f642ab11f.tar.bz2
Fixed port boundary check in test_server.cc
BUG=53934 TEST=manual Review URL: http://codereview.chromium.org/5377005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67487 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/test')
-rw-r--r--net/test/test_server.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/test/test_server.cc b/net/test/test_server.cc
index 1fd20c9..91ef115 100644
--- a/net/test/test_server.cc
+++ b/net/test/test_server.cc
@@ -397,7 +397,7 @@ bool TestServer::ParseServerData(const std::string& server_data) {
LOG(ERROR) << "Could not find port value";
return false;
}
- if ((port <= 0) || (port >= kuint16max)) {
+ if ((port <= 0) || (port > kuint16max)) {
LOG(ERROR) << "Invalid port value: " << port;
return false;
}