aboutsummaryrefslogtreecommitdiff
path: root/lib/vquic
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-08-29 18:55:29 +0200
committerDaniel Stenberg <daniel@haxx.se>2019-08-30 17:41:11 +0200
commit4d9e3247718654cfce75e847615d0dcebbc1dba6 (patch)
tree65d8758830bd60c3f6ee1891b02d9b3eb8421f7a /lib/vquic
parentdb8f760319668548d93ab0c023633293514d8137 (diff)
quiche: decrease available buffer size, don't assign it!
Found-by: Jeremy Lainé
Diffstat (limited to 'lib/vquic')
-rw-r--r--lib/vquic/quiche.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vquic/quiche.c b/lib/vquic/quiche.c
index a17bd6a1c..7968f7e17 100644
--- a/lib/vquic/quiche.c
+++ b/lib/vquic/quiche.c
@@ -442,7 +442,7 @@ static ssize_t h3_stream_recv(struct connectdata *conn,
buf[0] = '\r';
buf[1] = '\n';
buf += 2;
- buffersize = 2;
+ buffersize -= 2;
stream->firstbody = TRUE;
recvd = 2; /* two bytes already */
}