Index: net/quic/core/quic_framer.cc |
diff --git a/net/quic/core/quic_framer.cc b/net/quic/core/quic_framer.cc |
index bf16bf1e7d3267e41705a814386fea615eac6233..1431ccedb515f41038c4e57fa816385096b3ca4e 100644 |
--- a/net/quic/core/quic_framer.cc |
+++ b/net/quic/core/quic_framer.cc |
@@ -956,8 +956,8 @@ bool QuicFramer::ProcessPublicHeader(QuicDataReader* reader, |
// The nonce flag from a client is ignored and is assumed to be an older |
// client indicating an eight-byte connection ID. |
perspective_ == Perspective::IS_CLIENT) { |
- if (!reader->ReadBytes(reinterpret_cast<uint8_t*>(last_nonce_), |
- sizeof(last_nonce_))) { |
+ if (!reader->ReadBytes(reinterpret_cast<uint8_t*>(last_nonce_.data()), |
+ last_nonce_.size())) { |
set_detailed_error("Unable to read nonce."); |
return false; |
} |