mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
Add back the not null checks in a better place.
Check the pdb_init_sam() for failure.
(This used to be commit 1808cd5210
)
This commit is contained in:
parent
63a8a2ebe8
commit
5edc597786
@ -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 */
|
||||
|
||||
|
@ -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 */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user