From 0d2a62315030ee17a50c78f83cfe7d84f3ffe573 Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Fri, 25 Jan 2008 14:05:44 +0000 Subject: [PATCH] secur32: Initialise more pointers in helper to NULL. This is to avoid calling HeapFree on random pointers when DeleteSecurityContext is called on a context that hasn't had a second InitializeSecurityContext called on it, which would otherwise intialise those pointers. --- dlls/secur32/dispatcher.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dlls/secur32/dispatcher.c b/dlls/secur32/dispatcher.c index 226de79ccab..400334610b9 100644 --- a/dlls/secur32/dispatcher.c +++ b/dlls/secur32/dispatcher.c @@ -116,6 +116,13 @@ SECURITY_STATUS fork_helper(PNegoHelper *new_helper, const char *prog, helper->com_buf_offset = 0; helper->session_key = NULL; helper->neg_flags = 0; + helper->crypt.ntlm.a4i = NULL; + helper->crypt.ntlm2.send_a4i = NULL; + helper->crypt.ntlm2.recv_a4i = NULL; + helper->crypt.ntlm2.send_sign_key = NULL; + helper->crypt.ntlm2.send_seal_key = NULL; + helper->crypt.ntlm2.recv_sign_key = NULL; + helper->crypt.ntlm2.recv_seal_key = NULL; helper->pipe_in = pipe_in[0]; fcntl( pipe_in[0], F_SETFD, 1 ); close(pipe_in[1]);