summaryrefslogtreecommitdiff
path: root/nsswitch/winbind_nss_solaris.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-12-16 19:51:35 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-12-16 19:51:35 +0100
commit54dc421f5820099531a77879f52a904c2fefcf49 (patch)
treedaf0685fb9cb93e41332592f2be087686afb7ccc /nsswitch/winbind_nss_solaris.c
parentd59a79e5bb425d260af3261e88422eeaf1f1359c (diff)
parent4c3aea3f62a76fa62ead66d64941156375fc4501 (diff)
downloadsamba-54dc421f5820099531a77879f52a904c2fefcf49.tar.gz
samba-54dc421f5820099531a77879f52a904c2fefcf49.tar.bz2
samba-54dc421f5820099531a77879f52a904c2fefcf49.zip
Merge branch 'master' of ssh://git.samba.org/data/git/samba
Diffstat (limited to 'nsswitch/winbind_nss_solaris.c')
-rw-r--r--nsswitch/winbind_nss_solaris.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/nsswitch/winbind_nss_solaris.c b/nsswitch/winbind_nss_solaris.c
index 4c85bd3621..5fb37643ce 100644
--- a/nsswitch/winbind_nss_solaris.c
+++ b/nsswitch/winbind_nss_solaris.c
@@ -281,17 +281,22 @@ _nss_winbind_getgroupsbymember_solwrap(nss_backend_t* be, void* args)
{
int errnop;
struct nss_groupsbymem *gmem = (struct nss_groupsbymem *)args;
+ long int numgids = gmem->numgids;
+ long int maxgids = gmem->maxgids;
NSS_DEBUG("_nss_winbind_getgroupsbymember");
_nss_winbind_initgroups_dyn(gmem->username,
gmem->gid_array[0], /* Primary Group */
- &gmem->numgids,
- &gmem->maxgids,
+ &numgids,
+ &maxgids,
&gmem->gid_array,
gmem->maxgids,
&errnop);
+ gmem->numgids = numgids;
+ gmem->maxgids = maxgids;
+
/*
* If the maximum number of gids have been found, return
* SUCCESS so the switch engine will stop searching. Otherwise