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 6796fb19fd8fbb36238da08a9a84f9f808e0ac97..794030d8a531ee7148257c97c99db85baf8e6850 100644 |
--- a/net/http/http_server_properties_manager.cc |
+++ b/net/http/http_server_properties_manager.cc |
@@ -746,11 +746,11 @@ void HttpServerPropertiesManager::UpdatePrefsOnPrefThread( |
} |
// Save alternate_protocol. |
- if (server_pref.alternate_protocol) { |
+ const net::AlternateProtocolInfo* port_alternate_protocol = |
+ server_pref.alternate_protocol; |
+ if (port_alternate_protocol && !port_alternate_protocol->is_broken) { |
base::DictionaryValue* port_alternate_protocol_dict = |
new base::DictionaryValue; |
- const net::AlternateProtocolInfo* port_alternate_protocol = |
- server_pref.alternate_protocol; |
port_alternate_protocol_dict->SetInteger("port", |
port_alternate_protocol->port); |
const char* protocol_str = |