[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-unstable-956-g22a98bf

Volker Lendecke vl at samba.org
Sat Dec 29 20:43:36 GMT 2007


The branch, v3-2-test has been updated
       via  22a98bf7b81fb89dce1f32ef65cfe6caaba985b3 (commit)
      from  241b72141e3d9e31e30977517f871a97d74bbf7d (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test


- Log -----------------------------------------------------------------
commit 22a98bf7b81fb89dce1f32ef65cfe6caaba985b3
Author: Volker Lendecke <vl at samba.org>
Date:   Sat Dec 29 21:41:23 2007 +0100

    Fix a panic
    
    get_root_nt_token asks for "struct nt_user_token". talloc_get_type is not smart
    enough to see that this is the same as NT_USER_TOKEN... :-)

-----------------------------------------------------------------------

Summary of changes:
 source/auth/token_util.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/auth/token_util.c b/source/auth/token_util.c
index a1b4edf..9ca5216 100644
--- a/source/auth/token_util.c
+++ b/source/auth/token_util.c
@@ -296,7 +296,7 @@ struct nt_user_token *create_local_nt_token(TALLOC_CTX *mem_ctx,
 	DEBUG(10, ("Create local NT token for %s\n",
 		   sid_string_dbg(user_sid)));
 
-	if (!(result = TALLOC_ZERO_P(mem_ctx, NT_USER_TOKEN))) {
+	if (!(result = TALLOC_ZERO_P(mem_ctx, struct nt_user_token))) {
 		DEBUG(0, ("talloc failed\n"));
 		return NULL;
 	}


-- 
Samba Shared Repository


More information about the samba-cvs mailing list