Index: net/quic/quic_packet_creator.cc |
diff --git a/net/quic/quic_packet_creator.cc b/net/quic/quic_packet_creator.cc |
index 69fd504eb267fcecf6cfd3cbbbc1f98f92fe5a24..8e4f17425e3fa43b2415e072747ad117cef38079 100644 |
--- a/net/quic/quic_packet_creator.cc |
+++ b/net/quic/quic_packet_creator.cc |
@@ -642,8 +642,7 @@ void QuicPacketCreator::MaybeAddPadding() { |
return; |
} |
- QuicPaddingFrame padding; |
- bool success = AddFrame(QuicFrame(&padding), false, false, nullptr); |
+ bool success = AddFrame(QuicFrame(QuicPaddingFrame()), false, false, nullptr); |
DCHECK(success); |
} |