From 29c8cef22d48cdc95f121d6e3eea66d471a1e4fb Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Wed, 8 Mar 2006 15:18:14 +0000 Subject: r14042: check that create_local_nt_token() succeeds before dereferncing the NT_USER_TOKEN* (This used to be commit 4e5df4cb643886144d0fff4cac303e493c825955) --- source3/auth/auth_util.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source3/auth/auth_util.c') 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. */ -- cgit