← Commit list

8071d7adc2

Martin Dukek
Martin Dukek
2026-09-05
SUCCESS Duration: 423s

Subject

schannel: clear borrowed sslContext on close

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+3 -0
@@ -2551,6 +2551,9 @@ static void schannel_close(struct Curl_cfilter *cf, struct Curl_easy *data)
/* free SSPI Schannel API security context handle */
if(backend->ctxt) {
+ if(cf->conn->sslContext == &backend->ctxt->ctxt_handle)
+ cf->conn->sslContext = NULL;
+
DEBUGF(infof(data, "schannel: clear security context handle"));
Curl_pSecFn->DeleteSecurityContext(&backend->ctxt->ctxt_handle);
curlx_safefree(backend->ctxt);