Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21135)
sstream_updated = 0;
if (chunks[i].end >= chunks[i].start) {
+ /*
+ * Note: If the stream is being reset, we do not need to retransmit
+ * old data as this is pointless. In this case this will be handled
+ * by (sstream == NULL) above as the QSM will free the QUIC_SSTREAM
+ * and our call to get_sstream_by_id above will return NULL.
+ */
ossl_quic_sstream_mark_lost(sstream,
chunks[i].start, chunks[i].end);
sstream_updated = 1;