summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2006-03-08 15:18:14 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:11:07 -0500
commit29c8cef22d48cdc95f121d6e3eea66d471a1e4fb (patch)
treefb7c5efac183195617e87221642c0776fb5062cd /source3
parent753dcde401f165711e902d5bccd88bc4f6868537 (diff)
downloadsamba-29c8cef22d48cdc95f121d6e3eea66d471a1e4fb.tar.gz
samba-29c8cef22d48cdc95f121d6e3eea66d471a1e4fb.tar.bz2
samba-29c8cef22d48cdc95f121d6e3eea66d471a1e4fb.zip
r14042: check that create_local_nt_token() succeeds before dereferncing the NT_USER_TOKEN*
(This used to be commit 4e5df4cb643886144d0fff4cac303e493c825955)
Diffstat (limited to 'source3')
-rw-r--r--source3/auth/auth_util.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c
index 065e9d1899..263d8f2df7 100644
--- a/source3/auth/auth_util.c
+++ b/source3/auth/auth_util.c
@@ -821,6 +821,10 @@ NTSTATUS create_local_token(auth_serversupplied_info *server_info)
pdb_get_group_sid(server_info->sam_account),
server_info->guest,
server_info->num_sids, server_info->sids);
+
+ if ( !server_info->ptok ) {
+ return NT_STATUS_NO_SUCH_USER;
+ }
/* Convert the SIDs to gids. */