r8251: fixed a couple of valgrind errors in the unix auth code. Simo, can you
authorAndrew Tridgell <tridge@samba.org>
Sat, 9 Jul 2005 02:03:34 +0000 (02:03 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:19:25 +0000 (13:19 -0500)
please check that this is what you intended?
(This used to be commit a57738769dfb5a47ac49e965750193ecdc903d5a)

source4/auth/auth_unix.c
source4/auth/auth_util.c

index 990cf5568bc0de10f5b2f70e360e8d2c3ba927cf..7565d12eee148d0dcddf83f6d47cd8c24dbfdf11 100644 (file)
@@ -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;
index be7992ae8238c4a5dc5d1fc91938c1775fe30c66..7835d69e2b421c50cf0ed10dc9525daa31dc7142 100644 (file)
@@ -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));