summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
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. */