| Index: net/http/http_server_properties_manager.cc
|
| diff --git a/net/http/http_server_properties_manager.cc b/net/http/http_server_properties_manager.cc
|
| index 794030d8a531ee7148257c97c99db85baf8e6850..41b70b17bfae3fd132ef405e742e017613bd5583 100644
|
| --- a/net/http/http_server_properties_manager.cc
|
| +++ b/net/http/http_server_properties_manager.cc
|
| @@ -13,6 +13,7 @@
|
| #include "base/strings/stringprintf.h"
|
| #include "base/thread_task_runner_handle.h"
|
| #include "base/values.h"
|
| +#include "net/base/net_util.h"
|
|
|
| namespace net {
|
|
|
| @@ -419,7 +420,7 @@ void HttpServerPropertiesManager::UpdateCacheFromPrefsOnPrefThread() {
|
| int port = 0;
|
| if (!port_alternate_protocol_dict->GetIntegerWithoutPathExpansion(
|
| "port", &port) ||
|
| - (port > (1 << 16))) {
|
| + !IsPortValid(port)) {
|
| DVLOG(1) << "Malformed Alternate-Protocol server: " << server_str;
|
| detected_corrupted_prefs = true;
|
| continue;
|
|
|