git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7bbb340
)
r21394: Prevent nscd crash due to potential NULL pointer dereference in
author
Günther Deschner
<gd@samba.org>
Fri, 16 Feb 2007 17:25:54 +0000
(17:25 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 17:18:01 +0000
(12:18 -0500)
_nss_winbind_initgroups_dyn() on an empty group list.
Guenther
source/nsswitch/winbind_nss_linux.c
patch
|
blob
|
history
diff --git
a/source/nsswitch/winbind_nss_linux.c
b/source/nsswitch/winbind_nss_linux.c
index ea21391e9804b19acbcf16370d38a745ae76f9f3..fa74194aa9d7ec47ee31590aa4fb4904faacecdf 100644
(file)
--- a/
source/nsswitch/winbind_nss_linux.c
+++ b/
source/nsswitch/winbind_nss_linux.c
@@
-948,6
+948,10
@@
_nss_winbind_initgroups_dyn(char *user, gid_t group, long int *start,
"and %d gids\n", getpid(),
user, num_gids);
#endif
+ if (gid_list == NULL) {
+ ret = NSS_STATUS_NOTFOUND;
+ goto done;
+ }
/* Copy group list to client */