1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-08 21:18:16 +03:00

auth: Check for talloc failure in smb_pwd_check_ntlmv1()

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
This commit is contained in:
Volker Lendecke 2020-01-03 14:04:02 +01:00 committed by Gary Lockyer
parent b78cc8210d
commit 2bd941cc12

View File

@ -74,6 +74,10 @@ static bool smb_pwd_check_ntlmv1(TALLOC_CTX *mem_ctx,
if (memcmp(p24, nt_response->data, 24) == 0) {
if (user_sess_key != NULL) {
*user_sess_key = data_blob_talloc(mem_ctx, NULL, 16);
if (user_sess_key->data == NULL) {
DBG_ERR("data_blob_talloc failed\n");
return false;
}
SMBsesskeygen_ntv1(part_passwd, user_sess_key->data);
}
return true;