summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--source3/nsswitch/winbind_nss_linux.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/nsswitch/winbind_nss_linux.c b/source3/nsswitch/winbind_nss_linux.c
index ea21391e980..fa74194aa9d 100644
--- a/source3/nsswitch/winbind_nss_linux.c
+++ b/source3/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 */