git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
caae69f
)
Fix segfault. sup_tok might not always be with us.
author
Andrew Bartlett
<abartlet@samba.org>
Sun, 4 Nov 2001 04:58:17 +0000
(
04:58
+0000)
committer
Andrew Bartlett
<abartlet@samba.org>
Sun, 4 Nov 2001 04:58:17 +0000
(
04:58
+0000)
source/smbd/password.c
patch
|
blob
|
history
diff --git
a/source/smbd/password.c
b/source/smbd/password.c
index 429d72b4e51b447553f8254de8dd930d9b154a95..f0fec9b7960b8aa16abf5f07752a770ff3fa5e64 100644
(file)
--- a/
source/smbd/password.c
+++ b/
source/smbd/password.c
@@
-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.