mirror of
https://github.com/curl/curl.git
synced 2026-08-24 23:23:32 +03:00
ngtcp2: Reset dynbuf when it is fully drained
Reported-by: vl409 on github Fixes #7351 Closes #8504
This commit is contained in:
parent
8a1fa3b364
commit
6e9373b5f4
2 changed files with 2 additions and 5 deletions
|
|
@ -1220,6 +1220,8 @@ static size_t drain_overflow_buffer(struct HTTP *stream)
|
|||
if(ncopy != overlen)
|
||||
/* make the buffer only keep the tail */
|
||||
(void)Curl_dyn_tail(&stream->overflow, overlen - ncopy);
|
||||
else
|
||||
Curl_dyn_reset(&stream->overflow);
|
||||
}
|
||||
return ncopy;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue