diff options
author | Kai Blin <kai@samba.org> | 2009-11-18 11:26:57 +0100 |
---|---|---|
committer | Kai Blin <kai@samba.org> | 2009-11-21 07:29:33 +0100 |
commit | 43ed7a413dec10adc8cc4ede09132441b5ba2267 (patch) | |
tree | be2beebdb708460a5629a2cd0062faa348816483 | |
parent | 54ba3f522bd26919183278643b417e9632524be9 (diff) | |
download | samba-43ed7a413dec10adc8cc4ede09132441b5ba2267.tar.gz samba-43ed7a413dec10adc8cc4ede09132441b5ba2267.tar.bz2 samba-43ed7a413dec10adc8cc4ede09132441b5ba2267.zip |
ntlm_auth: use data_blob_talloc() to allocate session key
Thanks to Shibu Piriyath <shibunair80@ymail.com> for spotting the issue.
-rw-r--r-- | source3/utils/ntlm_auth.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/utils/ntlm_auth.c b/source3/utils/ntlm_auth.c index 2a7e18cfac..6e813f458c 100644 --- a/source3/utils/ntlm_auth.c +++ b/source3/utils/ntlm_auth.c @@ -579,13 +579,13 @@ static NTSTATUS winbind_pw_check(struct ntlmssp_state *ntlmssp_state, DATA_BLOB if (NT_STATUS_IS_OK(nt_status)) { if (memcmp(lm_key, zeros, 8) != 0) { - *lm_session_key = data_blob(NULL, 16); + *lm_session_key = data_blob_talloc(ntlmssp_state, NULL, 16); memcpy(lm_session_key->data, lm_key, 8); memset(lm_session_key->data+8, '\0', 8); } if (memcmp(user_sess_key, zeros, 16) != 0) { - *user_session_key = data_blob(user_sess_key, 16); + *user_session_key = data_blob_talloc(ntlmssp_state, user_sess_key, 16); } ntlmssp_state->auth_context = talloc_strdup(ntlmssp_state, unix_name); |