mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
r21394: Prevent nscd crash due to potential NULL pointer dereference in
_nss_winbind_initgroups_dyn() on an empty group list. Guenther
This commit is contained in:
parent
7bbb3409a5
commit
155b9e7c74
@ -948,6 +948,10 @@ _nss_winbind_initgroups_dyn(char *user, gid_t group, long int *start,
|
|||||||
"and %d gids\n", getpid(),
|
"and %d gids\n", getpid(),
|
||||||
user, num_gids);
|
user, num_gids);
|
||||||
#endif
|
#endif
|
||||||
|
if (gid_list == NULL) {
|
||||||
|
ret = NSS_STATUS_NOTFOUND;
|
||||||
|
goto done;
|
||||||
|
}
|
||||||
|
|
||||||
/* Copy group list to client */
|
/* Copy group list to client */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user