diff options
-rw-r--r-- | source3/nsswitch/winbind_nss_linux.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/nsswitch/winbind_nss_linux.c b/source3/nsswitch/winbind_nss_linux.c index ea21391e98..fa74194aa9 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 */ |