Internal change

PiperOrigin-RevId: 411601362
diff --git a/quic/core/crypto/quic_client_session_cache.cc b/quic/core/crypto/quic_client_session_cache.cc
index 97f7ee5..5ce935d 100644
--- a/quic/core/crypto/quic_client_session_cache.cc
+++ b/quic/core/crypto/quic_client_session_cache.cc
@@ -117,7 +117,7 @@
   if (iter == cache_.end()) {
     return;
   }
-  iter->second->token = token;
+  iter->second->token = std::string(token);
 }
 
 void QuicClientSessionCache::RemoveExpiredEntries(QuicWallTime now) {
diff --git a/quic/test_tools/simple_session_cache.cc b/quic/test_tools/simple_session_cache.cc
index 2d23673..b9c0436 100644
--- a/quic/test_tools/simple_session_cache.cc
+++ b/quic/test_tools/simple_session_cache.cc
@@ -63,7 +63,7 @@
   if (it == cache_entries_.end()) {
     return;
   }
-  it->second.token = token;
+  it->second.token = std::string(token);
 }
 
 void SimpleSessionCache::RemoveExpiredEntries(QuicWallTime /*now*/) {