summaryrefslogtreecommitdiff
path: root/source4/auth
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-07-09 02:03:34 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:19:25 -0500
commit38ec84a75c71b35ea88ba0efe5b935f7a0cdbe22 (patch)
treee588c4946c2e03c3304b9615a8a9f4515e198eb6 /source4/auth
parentc0a78453a77fb0aa42d676635778a75204b6869c (diff)
downloadsamba-38ec84a75c71b35ea88ba0efe5b935f7a0cdbe22.tar.gz
samba-38ec84a75c71b35ea88ba0efe5b935f7a0cdbe22.tar.bz2
samba-38ec84a75c71b35ea88ba0efe5b935f7a0cdbe22.zip
r8251: fixed a couple of valgrind errors in the unix auth code. Simo, can you
please check that this is what you intended? (This used to be commit a57738769dfb5a47ac49e965750193ecdc903d5a)
Diffstat (limited to 'source4/auth')
-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));