1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00

r14042: check that create_local_nt_token() succeeds before dereferncing the NT_USER_TOKEN*

(This used to be commit 4e5df4cb64)
This commit is contained in:
Gerald Carter 2006-03-08 15:18:14 +00:00 committed by Gerald (Jerry) Carter
parent 753dcde401
commit 29c8cef22d

View File

@ -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. */