Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
CONC-555 appverifier error in schannel_free_cert_context
It looks like CertFreeCertificateContext() would try to access freed memory. Fix it by using CERT_STORE_NO_CRYPT_RELEASE_FLAG when setting private key in certificate, i.e avoid releasing the crypto provider when certificate is freed. Note: My attempts to fix with less code , i.e just omit CryptReleaseContext(), failed, there was a small memory leak left after freeing each SSL connection.
- Loading branch information