From 8c08405c018506133dbd7dec5458cec166b881b2 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(). (cherry picked from commit 43c841b6bd92e987109df81b6b8a2b85f21b0181) --- source3/winbindd/winbindd_ccache_access.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/source3/winbindd/winbindd_ccache_access.c b/source3/winbindd/winbindd_ccache_access.c index f0c77b2..508bda4 100644 --- a/source3/winbindd/winbindd_ccache_access.c +++ b/source3/winbindd/winbindd_ccache_access.c @@ -115,7 +115,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: -- 1.5.4.3