diff options
Diffstat (limited to 'net/base/transport_security_state.cc')
-rw-r--r-- | net/base/transport_security_state.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/base/transport_security_state.cc b/net/base/transport_security_state.cc index a0d2794..dc87c10 100644 --- a/net/base/transport_security_state.cc +++ b/net/base/transport_security_state.cc @@ -142,7 +142,9 @@ bool TransportSecurityState::ParseHeader(const std::string& value, case AFTER_MAX_AGE_EQUALS: if (IsAsciiWhitespace(*tokenizer.token_begin())) continue; - if (!base::StringToInt(tokenizer.token(), &max_age_candidate)) + if (!base::StringToInt(tokenizer.token_begin(), + tokenizer.token_end(), + &max_age_candidate)) return false; if (max_age_candidate < 0) return false; |