Commit b0f5b96e authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

winhttp/tests: Only free a certificate context if retrieving it succeeded.

parent 71880e48
......@@ -787,6 +787,7 @@ static void test_secure_connection(void)
size = sizeof(cert);
ret = WinHttpQueryOption(req, WINHTTP_OPTION_SERVER_CERT_CONTEXT, &cert, &size );
ok(ret, "failed to retrieve certificate context %u\n", GetLastError());
if (ret)
CertFreeCertificateContext(cert);
size = sizeof(bitness);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment