[PATCH] wininet/tests: Don't check certificate when secure flag is not set
André Hentschel
nerv at dawncrow.de
Sat Sep 15 07:47:44 CDT 2018
Signed-off-by: André Hentschel <nerv at dawncrow.de>
---
dlls/wininet/tests/http.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/wininet/tests/http.c b/dlls/wininet/tests/http.c
index ace8512399..8bc06b9166 100644
--- a/dlls/wininet/tests/http.c
+++ b/dlls/wininet/tests/http.c
@@ -6025,7 +6025,8 @@ static void test_secure_connection(void)
ok(ret, "InternetQueryOption failed: %d\n", GetLastError());
ok(flags & SECURITY_FLAG_SECURE, "expected secure flag to be set\n");
- test_cert_struct(req, &test_winehq_org_cert);
+ if (flags & SECURITY_FLAG_SECURE)
+ test_cert_struct(req, &test_winehq_org_cert);
/* Querying the same option through InternetQueryOptionW still results in
* ASCII strings being returned.
--
2.17.1
More information about the wine-devel
mailing list