quiche: decrease available buffer size, don't assign it!

Found-by: Jeremy Lainé
This commit is contained in:
Daniel Stenberg 2019-08-29 18:55:29 +02:00
parent db8f760319
commit 4d9e324771
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -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 */
}