1
0
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:
Andrew Bartlett 2001-11-11 11:18:45 +00:00
parent 63a8a2ebe8
commit 5edc597786
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 */

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