From 0a2fe961b08b3ace1f4bd697db2d1deb4edefe02 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 11 Jan 2010 14:47:32 -0800 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) --- source/winbindd/winbindd_ccache_access.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/source/winbindd/winbindd_ccache_access.c b/source/winbindd/winbindd_ccache_access.c index a696db1..b41eacd 100644 --- a/source/winbindd/winbindd_ccache_access.c +++ b/source/winbindd/winbindd_ccache_access.c @@ -114,7 +114,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