Index: net/base/ssl_false_start_blacklist.cc |
diff --git a/net/base/ssl_false_start_blacklist.cc b/net/base/ssl_false_start_blacklist.cc |
index b57826b18608330bc9d2a6e2448505e183bd5182..dd2f614039a15d5f479002aa756d380f0a44cd16 100644 |
--- a/net/base/ssl_false_start_blacklist.cc |
+++ b/net/base/ssl_false_start_blacklist.cc |
@@ -8,10 +8,10 @@ namespace net { |
// static |
bool SSLFalseStartBlacklist::IsMember(const char* host) { |
- const char* last_two_labels = LastTwoLabels(host); |
- if (!last_two_labels) |
+ const std::string last_two_labels = LastTwoLabels(host); |
+ if (last_two_labels.empty()) |
return false; |
- const unsigned bucket = Hash(last_two_labels) & (kBuckets - 1); |
+ const unsigned bucket = Hash(last_two_labels.c_str()) & (kBuckets - 1); |
const uint32 start = kHashTable[bucket]; |
const uint32 end = kHashTable[bucket + 1]; |
const size_t len = strlen(host); |