Nikolay Sivov : secur32: Zero initialize context for create_session() call.
Alexandre Julliard
julliard at winehq.org
Fri May 27 16:35:30 CDT 2022
Module: wine
Branch: master
Commit: d92866863f6b5ca01675254ad315659b40f88ed4
URL: https://source.winehq.org/git/wine.git/?a=commit;h=d92866863f6b5ca01675254ad315659b40f88ed4
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Fri May 27 10:35:47 2022 +0300
secur32: Zero initialize context for create_session() call.
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/secur32/schannel.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/dlls/secur32/schannel.c b/dlls/secur32/schannel.c
index 618982d889e..30c86c724b4 100644
--- a/dlls/secur32/schannel.c
+++ b/dlls/secur32/schannel.c
@@ -806,9 +806,8 @@ static SECURITY_STATUS SEC_ENTRY schan_InitializeSecurityContextW(
return SEC_E_INVALID_HANDLE;
}
- if (!(ctx = malloc(sizeof(*ctx)))) return SEC_E_INSUFFICIENT_MEMORY;
+ if (!(ctx = calloc(1, sizeof(*ctx)))) return SEC_E_INSUFFICIENT_MEMORY;
- ctx->cert = NULL;
handle = schan_alloc_handle(ctx, SCHAN_HANDLE_CTX);
if (handle == SCHAN_INVALID_HANDLE)
{
More information about the wine-cvs
mailing list