From dbb739475338bd7e421e9cbe6102d5e7fc6f3e12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastian=20K=C3=B6cher?= <git@kchr.de> Date: Mon, 12 Nov 2018 13:50:20 +0100 Subject: [PATCH] Make sure to set `consumed` in every situation. If we do not set `consumed` we could loose data! --- picoquic/frames.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/picoquic/frames.c b/picoquic/frames.c index de10e27e..e5f57453 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 */ -- GitLab