diff --git a/picoquic/frames.c b/picoquic/frames.c index de10e27e2324250c16b63e7fb60d2b5309b58e8b..e5f574530b3a17be7d2f160a10fe186f7275ee97 100644 --- a/picoquic/frames.c +++ b/picoquic/frames.c @@ -1074,8 +1074,8 @@ int picoquic_prepare_stream_frame(picoquic_cnx_t* cnx, picoquic_stream_head* str if (stream->stream_id != 0) { cnx->data_sent += length; } - *consumed = byte_index; } + *consumed = byte_index; if (ret == 0 && STREAM_FIN_NOTIFIED(stream) && stream->send_queue == 0) { /* Set the fin bit */