gtls: use the correct return code in trace output

Instead of using a hard-coded zero.

Spotted by Copilot

Closes #21766
This commit is contained in:
Daniel Stenberg 2026-05-27 09:26:41 +02:00
parent 23e4bd9602
commit efdf733bae
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -2249,7 +2249,8 @@ static CURLcode gtls_recv(struct Curl_cfilter *cf,
}
out:
CURL_TRC_CF(data, cf, "gtls_recv(len=%zu) -> 0, %zd", blen, nread);
CURL_TRC_CF(data, cf, "gtls_recv(len=%zu) -> %d, %zd", blen,
(int)result, nread);
return result;
}