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:
parent
753dcde401
commit
29c8cef22d
@ -822,6 +822,10 @@ NTSTATUS create_local_token(auth_serversupplied_info *server_info)
|
||||
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. */
|
||||
|
||||
server_info->n_groups = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user