1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-29 13:49:30 +03:00

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().
This commit is contained in:
Volker Lendecke
2010-01-09 20:22:00 +01:00
parent c03a101e6d
commit 43c841b6bd

View File

@ -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: