gfe-relnote: In QUIC, only vlidate destination_connection_id_length and source_connection_id_length when should_update_expected_connection_id_length is false. No functional change expected, not protected.
PiperOrigin-RevId: 248557691
Change-Id: Id5e9a91428c3658e3801d85bc0c67ff61b4b6b3b
diff --git a/quic/core/quic_framer.cc b/quic/core/quic_framer.cc
index b686068..27af834 100644
--- a/quic/core/quic_framer.cc
+++ b/quic/core/quic_framer.cc
@@ -2640,9 +2640,9 @@
if (scil != 0) {
scil += kConnectionIdLengthAdjustment;
}
- if ((dcil != *destination_connection_id_length ||
+ if (!should_update_expected_connection_id_length &&
+ (dcil != *destination_connection_id_length ||
scil != *source_connection_id_length) &&
- !should_update_expected_connection_id_length &&
!QuicUtils::VariableLengthConnectionIdAllowedForVersion(
version.transport_version)) {
// TODO(dschinazi): use the framer's version once the