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_sess_key_ntlmv2()

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 4014d91b9a
commit e02d24c087

View File

@ -232,6 +232,10 @@ static bool smb_sess_key_ntlmv2(TALLOC_CTX *mem_ctx,
return false;
}
*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;
}
status = SMBsesskeygen_ntv2(kr,
value_from_encryption,
user_sess_key->data);