From efdf733baebc475af485b582551844f20bed546b Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 27 May 2026 09:26:41 +0200 Subject: [PATCH] gtls: use the correct return code in trace output Instead of using a hard-coded zero. Spotted by Copilot Closes #21766 --- lib/vtls/gtls.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/vtls/gtls.c b/lib/vtls/gtls.c index d0b851e0eb..70edfc629c 100644 --- a/lib/vtls/gtls.c +++ b/lib/vtls/gtls.c @@ -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; }