]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
gtls: use the correct return code in trace output
authorDaniel Stenberg <daniel@haxx.se>
Wed, 27 May 2026 07:26:41 +0000 (09:26 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 27 May 2026 07:38:39 +0000 (09:38 +0200)
Instead of using a hard-coded zero.

Spotted by Copilot

Closes #21766

lib/vtls/gtls.c

index d0b851e0eb1d4368abac6cec37fd9b9631d9f644..70edfc629c1c1f899ce21b481969d28417ca6dd2 100644 (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;
 }