| Index: net/quic/quic_packet_generator.cc
|
| diff --git a/net/quic/quic_packet_generator.cc b/net/quic/quic_packet_generator.cc
|
| index d11383bf636ba87b2453d60fe2bc94b59a391776..c8c927dd5077915aeca5b045e849503f3086edfa 100644
|
| --- a/net/quic/quic_packet_generator.cc
|
| +++ b/net/quic/quic_packet_generator.cc
|
| @@ -59,7 +59,9 @@ QuicConsumedData QuicPacketGenerator::ConsumeData(
|
| QuicStreamOffset offset,
|
| bool fin,
|
| QuicAckListenerInterface* listener) {
|
| - bool has_handshake = id == kCryptoStreamId;
|
| + bool has_handshake = (id == kCryptoStreamId);
|
| + QUIC_BUG_IF(has_handshake && fin)
|
| + << "Handshake packets should never send a fin";
|
| // To make reasoning about crypto frames easier, we don't combine them with
|
| // other retransmittable frames in a single packet.
|
| const bool flush =
|
|
|