1
0
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:
Günther Deschner 2007-02-16 17:25:54 +00:00 committed by Gerald (Jerry) Carter
parent 7bbb3409a5
commit 155b9e7c74

View File

@ -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 */