From 43c841b6bd92e987109df81b6b8a2b85f21b0181 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 9 Jan 2010 20:22:00 +0100 Subject: [PATCH] s3: Fix a segfault in winbindd_dual_ccache_ntlm_auth() ntlmssp_update allocates the reply_blob as a child of ntlmssp_state. This means with ntlmss_end() it will be gone. winbindd_dual_ccache_ntlm_auth used the blob after the ntlmssp_end(). --- source3/winbindd/winbindd_ccache_access.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/winbindd/winbindd_ccache_access.c b/source3/winbindd/winbindd_ccache_access.c index 921110a0be5..2f71aaae527 100644 --- a/source3/winbindd/winbindd_ccache_access.c +++ b/source3/winbindd/winbindd_ccache_access.c @@ -116,7 +116,7 @@ static NTSTATUS do_ntlm_auth_with_hashes(const char *username, data_blob_free(&reply); goto done; } - *auth_msg = reply; + *auth_msg = data_blob(reply.data, reply.length); status = NT_STATUS_OK; done: -- 2.11.4.GIT