1
0
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:
Andrew Bartlett
-
parent 3eada888fd
commit 1808cd5210
2 changed files with 14 additions and 2 deletions

View File

@@ -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 */