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:
parent
b78cc8210d
commit
2bd941cc12
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user