Zebediah Figura : secur32/tests: Zero-initialize contexts.
Alexandre Julliard
julliard at winehq.org
Fri Oct 20 07:19:57 CDT 2017
Module: wine
Branch: stable
Commit: cb528d1f4d442ac89a79701e1c52d51198427689
URL: http://source.winehq.org/git/wine.git/?a=commit;h=cb528d1f4d442ac89a79701e1c52d51198427689
Author: Zebediah Figura <z.figura12 at gmail.com>
Date: Fri May 12 16:04:06 2017 -0500
secur32/tests: Zero-initialize contexts.
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
(cherry picked from commit abd38ab29383292aebc4a91c0b08c6c45b58e1c8)
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
---
dlls/secur32/tests/ntlm.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/dlls/secur32/tests/ntlm.c b/dlls/secur32/tests/ntlm.c
index 3b661c1..944126e 100644
--- a/dlls/secur32/tests/ntlm.c
+++ b/dlls/secur32/tests/ntlm.c
@@ -574,7 +574,7 @@ static void testInitializeSecurityContextFlags(void)
{
SECURITY_STATUS sec_status;
PSecPkgInfoA pkg_info = NULL;
- SspiData client;
+ SspiData client = {0};
SEC_WINNT_AUTH_IDENTITY_A id;
ULONG req_attr, ctxt_attr;
TimeStamp ttl;
@@ -794,7 +794,7 @@ static void testAuth(ULONG data_rep, BOOL fake)
SECURITY_STATUS sec_status;
PSecPkgInfoA pkg_info = NULL;
BOOL first = TRUE;
- SspiData client, server;
+ SspiData client = {0}, server = {0};
SEC_WINNT_AUTH_IDENTITY_A id;
SecPkgContext_Sizes ctxt_sizes;
@@ -923,7 +923,7 @@ static void testSignSeal(void)
SECURITY_STATUS sec_status;
PSecPkgInfoA pkg_info = NULL;
BOOL first = TRUE;
- SspiData client, server;
+ SspiData client = {0}, server = {0};
SEC_WINNT_AUTH_IDENTITY_A id;
static char sec_pkg_name[] = "NTLM";
SecBufferDesc crypt;
@@ -1340,8 +1340,8 @@ static void test_cred_multiple_use(void)
SEC_WINNT_AUTH_IDENTITY_A id;
PSecPkgInfoA pkg_info = NULL;
CredHandle cred;
- CtxtHandle ctxt1;
- CtxtHandle ctxt2;
+ CtxtHandle ctxt1 = {0};
+ CtxtHandle ctxt2 = {0};
SecBufferDesc buffer_desc;
SecBuffer buffers[1];
ULONG ctxt_attr;
@@ -1400,7 +1400,7 @@ static void test_null_auth_data(void)
SECURITY_STATUS status;
PSecPkgInfoA info;
CredHandle cred;
- CtxtHandle ctx;
+ CtxtHandle ctx = {0};
SecBufferDesc buffer_desc;
SecBuffer buffers[1];
char user[256];
More information about the wine-cvs
mailing list