mirror of
https://github.com/samba-team/samba.git
synced 2025-12-05 12:23:50 +03:00
Add back the not null checks in a better place.
Check the pdb_init_sam() for failure.
This commit is contained in:
@@ -344,7 +344,13 @@ NTSTATUS check_smbpasswd_security(const auth_usersupplied_info *user_info, auth_
|
||||
uint8 user_sess_key[16];
|
||||
const uint8* lm_hash;
|
||||
|
||||
pdb_init_sam(&sampass);
|
||||
if (!user_info) {
|
||||
return NT_STATUS_LOGON_FAILURE;
|
||||
}
|
||||
|
||||
if (!pdb_init_sam(&sampass)) {
|
||||
return NT_STATUS_NO_MEMORY;
|
||||
}
|
||||
|
||||
/* get the account information */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user