| Index: net/http/transport_security_state.cc
|
| diff --git a/net/http/transport_security_state.cc b/net/http/transport_security_state.cc
|
| index d1091be20690afbb867efc90c4b79a977f26876e..d0c0b33a896588bc86e6e1c1414f9d3532f60284 100644
|
| --- a/net/http/transport_security_state.cc
|
| +++ b/net/http/transport_security_state.cc
|
| @@ -552,7 +552,7 @@ bool DecodeHSTSPreloadRaw(const std::string& hostname,
|
| return false;
|
| }
|
|
|
| - if (bit_offset <= jump_delta) {
|
| + if (bit_offset < jump_delta) {
|
| return false;
|
| }
|
|
|
| @@ -598,8 +598,8 @@ bool DecodeHSTSPreload(const std::string& hostname,
|
| PreloadResult* out) {
|
| bool found;
|
| if (!DecodeHSTSPreloadRaw(hostname, &found, out)) {
|
| - LOG(ERROR) << "Internal error in DecodeHSTSPreloadRaw for hostname "
|
| - << hostname;
|
| + DCHECK(false) << "Internal error in DecodeHSTSPreloadRaw for hostname "
|
| + << hostname;
|
| return false;
|
| }
|
|
|
|
|