← Commit list

27f55383fb

x2018
x2018
2025-10-31
SUCCESS Duration: 153s

Subject

schannel: properly close the certfile on error

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 -0
@@ -581,6 +581,8 @@ schannel_acquire_credential_handle(struct Curl_cfilter *cf,
" for %s",
blob ? "(memory blob)" : data->set.ssl.primary.clientcert);
curlx_unicodefree(cert_path);
+ if(fInCert)
+ curlx_fclose(fInCert);
return CURLE_SSL_CERTPROBLEM;
}