| Index: net/quic/platform/impl/quic_ip_address_impl.cc
|
| diff --git a/net/quic/platform/impl/quic_ip_address_impl.cc b/net/quic/platform/impl/quic_ip_address_impl.cc
|
| index e0c58f14ec87d4601c10b8d955831e48b3ff2f29..961f5f125f495b1b7e97294b318d1b9ffc6297fb 100644
|
| --- a/net/quic/platform/impl/quic_ip_address_impl.cc
|
| +++ b/net/quic/platform/impl/quic_ip_address_impl.cc
|
| @@ -107,9 +107,7 @@ bool QuicIpAddressImpl::FromPackedString(const char* data, size_t length) {
|
| QUIC_BUG << "Invalid packed IP address of length " << length;
|
| return false;
|
| }
|
| - std::vector<uint8_t> ip(length);
|
| - memcpy(&ip[0], data, length);
|
| - ip_address_ = IPAddress(ip);
|
| + ip_address_ = IPAddress(reinterpret_cast<const uint8_t*>(data), length);
|
| return true;
|
| }
|
|
|
|
|