summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/auth/auth_unix.c2
-rw-r--r--source4/auth/auth_util.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/source4/auth/auth_unix.c b/source4/auth/auth_unix.c
index 990cf5568b..7565d12eee 100644
--- a/source4/auth/auth_unix.c
+++ b/source4/auth/auth_unix.c
@@ -784,7 +784,7 @@ static NTSTATUS authunix_check_password(struct auth_method_context *ctx,
return nt_status;
}
- nt_status = authunix_make_server_info(check_ctx, user_info, server_info);
+ nt_status = authunix_make_server_info(mem_ctx, user_info, server_info);
if ( ! NT_STATUS_IS_OK(nt_status)) {
talloc_free(check_ctx);
return nt_status;
diff --git a/source4/auth/auth_util.c b/source4/auth/auth_util.c
index be7992ae82..7835d69e2b 100644
--- a/source4/auth/auth_util.c
+++ b/source4/auth/auth_util.c
@@ -125,6 +125,7 @@ NTSTATUS make_user_info(TALLOC_CTX *mem_ctx,
user_info->plaintext_password = blob;
user_info->encrypted = encrypted;
+ user_info->flags = 0;
DEBUG(10,("made an %sencrypted user_info for %s (%s)\n", encrypted ? "":"un" , account_name, c_account_name));