Fix a panic
authorVolker Lendecke <vl@samba.org>
Sat, 29 Dec 2007 20:41:23 +0000 (21:41 +0100)
committerVolker Lendecke <vl@samba.org>
Sat, 29 Dec 2007 20:42:56 +0000 (21:42 +0100)
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... :-)

source/auth/token_util.c

index a1b4edfb7ae023bd0b372866aa7a0040e945e2cb..9ca5216af0f8a12e3bcac5e9caf59f9eb180b97c 100644 (file)
@@ -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;
        }