From 38ec84a75c71b35ea88ba0efe5b935f7a0cdbe22 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 9 Jul 2005 02:03:34 +0000 Subject: [PATCH] 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) --- source4/auth/auth_unix.c | 2 +- source4/auth/auth_util.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/source4/auth/auth_unix.c b/source4/auth/auth_unix.c index 990cf5568bc..7565d12eee1 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 be7992ae823..7835d69e2b4 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)); -- 2.34.1