mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
Fix segfault. sup_tok might not always be with us.
This commit is contained in:
parent
caae69fcd0
commit
1f409a1f3f
@ -170,9 +170,11 @@ NT_USER_TOKEN *create_nt_token(uid_t uid, gid_t gid, int ngroups, gid_t *groups,
|
||||
}
|
||||
}
|
||||
|
||||
/* Now add the additional SIDs from the supplimentary token. */
|
||||
for (i = 0; i < sup_tok->num_sids; i++)
|
||||
sid_copy( &psids[psid_ndx++], &sup_tok->user_sids[i] );
|
||||
if (sup_tok) {
|
||||
/* Now add the additional SIDs from the supplimentary token. */
|
||||
for (i = 0; i < sup_tok->num_sids; i++)
|
||||
sid_copy( &psids[psid_ndx++], &sup_tok->user_sids[i] );
|
||||
}
|
||||
|
||||
/*
|
||||
* Finally add the "standard" SIDs.
|
||||
|
Loading…
Reference in New Issue
Block a user