mirror of
https://github.com/curl/curl.git
synced 2026-05-15 04:56:20 +03:00
cf_socket_recv: don't count reading zero bytes as first byte
Reported in Joshua's sarif data Closes #18615
This commit is contained in:
parent
4f5528675a
commit
df60e8fe70
1 changed files with 1 additions and 1 deletions
|
|
@ -1578,7 +1578,7 @@ static CURLcode cf_socket_recv(struct Curl_cfilter *cf, struct Curl_easy *data,
|
|||
*pnread = (size_t)nread;
|
||||
|
||||
CURL_TRC_CF(data, cf, "recv(len=%zu) -> %d, %zu", len, result, *pnread);
|
||||
if(!result && !ctx->got_first_byte) {
|
||||
if(!result && !ctx->got_first_byte && nread) {
|
||||
ctx->first_byte_at = curlx_now();
|
||||
ctx->got_first_byte = TRUE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue