| Index: net/quic/quic_connection.cc
|
| diff --git a/net/quic/quic_connection.cc b/net/quic/quic_connection.cc
|
| index b35d1bd691e7b62b5224dda231cd40cff7521a53..da8305f42bd488d7e8f9c71e88418ec6a736bcbf 100644
|
| --- a/net/quic/quic_connection.cc
|
| +++ b/net/quic/quic_connection.cc
|
| @@ -1720,19 +1720,18 @@ void QuicConnection::OnWriteError(int error_code) {
|
| CloseConnection(QUIC_PACKET_WRITE_ERROR, false);
|
| }
|
|
|
| -void QuicConnection::OnSerializedPacket(
|
| - const SerializedPacket& serialized_packet) {
|
| - if (serialized_packet.packet == nullptr) {
|
| +void QuicConnection::OnSerializedPacket(SerializedPacket* serialized_packet) {
|
| + if (serialized_packet->packet == nullptr) {
|
| // We failed to serialize the packet, so close the connection.
|
| // CloseConnection does not send close packet, so no infinite loop here.
|
| CloseConnection(QUIC_ENCRYPTION_FAILURE, false);
|
| return;
|
| }
|
| - if (serialized_packet.is_fec_packet && fec_alarm_->IsSet()) {
|
| + if (serialized_packet->is_fec_packet && fec_alarm_->IsSet()) {
|
| // If an FEC packet is serialized with the FEC alarm set, cancel the alarm.
|
| fec_alarm_->Cancel();
|
| }
|
| - SendOrQueuePacket(QueuedPacket(serialized_packet));
|
| + SendOrQueuePacket(QueuedPacket(*serialized_packet));
|
| }
|
|
|
| void QuicConnection::OnResetFecGroup() {
|
|
|