← Commit list

94eec0a788

Daniel Stenberg
Daniel Stenberg
2025-09-20
FAILED Duration: 257s

Subject

schannel: assign result before using it

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

lib/vtls/schannel.c+2 -2
@@ -2451,9 +2451,9 @@ static CURLcode schannel_shutdown(struct Curl_cfilter *cf,
Curl_pSecFn->FreeContextBuffer(outbuf.pvBuffer);
if(!result) {
if(written < outbuf.cbBuffer) {
+ result = CURLE_SEND_ERROR;
failf(data, "schannel: failed to send close msg: %s"
" (bytes written: %zu)", curl_easy_strerror(result), written);
- result = CURLE_SEND_ERROR;
goto out;
}
backend->sent_shutdown = TRUE;
@@ -2466,8 +2466,8 @@ static CURLcode schannel_shutdown(struct Curl_cfilter *cf,
}
else {
if(!backend->recv_connection_closed) {
- failf(data, "schannel: error sending close msg: %d", result);
result = CURLE_SEND_ERROR;
+ failf(data, "schannel: error sending close msg: %d", result);
goto out;
}
/* Looks like server already closed the connection.