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:
parent
4014d91b9a
commit
e02d24c087
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user