gfe-relnote: When a QUIC client receives an unexpected crypto tag, include the tag in the connection close details. Not flag protected. PiperOrigin-RevId: 289173708 Change-Id: I7ac33fb410670e7603f124058c1e5a6eb37c9f59
diff --git a/quic/core/quic_crypto_client_handshaker.cc b/quic/core/quic_crypto_client_handshaker.cc index eed6993..ae48bdc 100644 --- a/quic/core/quic_crypto_client_handshaker.cc +++ b/quic/core/quic_crypto_client_handshaker.cc
@@ -516,8 +516,10 @@ } if (in->tag() != kSHLO) { - stream_->CloseConnectionWithDetails(QUIC_INVALID_CRYPTO_MESSAGE_TYPE, - "Expected SHLO or REJ"); + stream_->CloseConnectionWithDetails( + QUIC_INVALID_CRYPTO_MESSAGE_TYPE, + quiche::QuicheStrCat("Expected SHLO or REJ. Received: ", + QuicTagToString(in->tag()))); return; }