summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2007-12-29 21:41:23 +0100
committerVolker Lendecke <vl@samba.org>2007-12-29 21:42:56 +0100
commit99bd615a80e8f983d386e260e747db102ec38cf3 (patch)
tree9e317a19337a8911e99f913ff9b7c2fd6ab293b2 /source3
parenta60867b67e53d8a0f08de402e160478efc089a72 (diff)
downloadsamba-99bd615a80e8f983d386e260e747db102ec38cf3.tar.gz
samba-99bd615a80e8f983d386e260e747db102ec38cf3.tar.bz2
samba-99bd615a80e8f983d386e260e747db102ec38cf3.zip
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... :-) (This used to be commit 22a98bf7b81fb89dce1f32ef65cfe6caaba985b3)
Diffstat (limited to 'source3')
-rw-r--r--source3/auth/token_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/auth/token_util.c b/source3/auth/token_util.c
index a1b4edfb7a..9ca5216af0 100644
--- a/source3/auth/token_util.c
+++ b/source3/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;
}