summaryrefslogtreecommitdiff
path: root/source3/auth
diff options
context:
space:
mode:
Diffstat (limited to 'source3/auth')
-rw-r--r--source3/auth/auth_sam.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source3/auth/auth_sam.c b/source3/auth/auth_sam.c
index 717e30eda7..70632fb5df 100644
--- a/source3/auth/auth_sam.c
+++ b/source3/auth/auth_sam.c
@@ -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 */