wininet: A small netconn_secure_verify code clean up.
This commit is contained in:
parent
a664fa8041
commit
adf08d586d
|
@ -333,12 +333,8 @@ static int netconn_secure_verify(int preverify_ok, X509_STORE_CTX *ctx)
|
|||
cert = (X509 *)psk_value(chain, i);
|
||||
if ((context = X509_to_cert_context(cert)))
|
||||
{
|
||||
if (i == 0)
|
||||
ret = CertAddCertificateContextToStore(store, context,
|
||||
CERT_STORE_ADD_ALWAYS, &endCert);
|
||||
else
|
||||
ret = CertAddCertificateContextToStore(store, context,
|
||||
CERT_STORE_ADD_ALWAYS, NULL);
|
||||
CERT_STORE_ADD_ALWAYS, i ? NULL : &endCert);
|
||||
CertFreeCertificateContext(context);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue